Hi i was wondering how you would re-direct an iframe url if the requested url is not accessible?
im currently using a dynamic iframe example as below and want to add a re-direct if the requested iframe url is not accessible or times out
im currently using a dynamic iframe example as below and want to add a re-direct if the requested iframe url is not accessible or times out
Code:
$(function() {
function seturl(url) {
$('.iframeurl').find('iframe').attr('src', url);
}
$('.btn-1').on('vclick', function() {
seturl('https://forum.logicmachine.net');
});
$('.btn-2').on('vclick', function() {
seturl('http://openrb.com');
});
})