refresh an iframe in php page

Rate this post

refresh an iframe in php page

 

<script type=”text/javascript”>
var timer;
function refreshIframe(){
if(timer)
clearInterval(timer)
timer = setTimeout(refreshIframe,5000)
var iframe = document.getElementById(‘iframe’);
iframe.src=’http://blog.eduguru.in’;
}

refreshIframe();

</script>

<iframe id=”iframe” src=”http://blog.eduguru.in” width=”100%” height=”300″>
<p>Your browser does not support iframes.</p>
</iframe>

 

 

For any query or issue, feel free to discuss on http://discuss.eduguru.in

Leave a Reply

%d bloggers like this: