111
rated 0 times
[
118]
[
7]
/ answers: 1 / hits: 16890
/ 11 Years ago, sat, july 20, 2013, 12:00:00
i need to stop loading my iframe page after 5000 ms i'm use these but it's refresh the iframe every 5000 ms later what the problem . pleas fix it pleas. thanks
<iframe id=iframe1 src= width=920 height=900 border=2></iframe>
<script type=text/javascript>
function setIframeSrc() {
var s = http://lx5.in/CGIT-Results-p2-2013.php;
var iframe1 = document.getElementById('iframe1');
if ( -1 == navigator.userAgent.indexOf(MSIE) ) {
iframe1.src = s;
setTimeout(setIframeSrc, 5000);
}
else {
iframe1.location = s;
setTimeout(setIframeSrc, 5000);
}
}
setTimeout(setIframeSrc, 5000);
</script>
More From » iframe