Share your coding samples or ask questions

Question HTML document with multiple frames with auto refresh every set interval using javascript

More
11 years 6 months ago #10 by roller
<html>
<head>
<title>A simple frameset document with auto refersh by Edgar Badawy fracta.net
<script language="javascript">
function doRefresh(){

var callB = function(){
// in milliseconds, so 10000 is 10 s
window.setTimeout(callB, 900000);
parent.frames[1].location.href = " www.google.com/ " ;
parent.frames[2].location.href = " www.yahoo.com/ ";

}

window.setTimeout(callB, 10000);

}

</script>
</head>
<frameset cols="10%,40%,50%" onload="doRefresh();">
<frame name="f0" src="#" />
<frame name="f1" src=" fracta.net/fracta/ " />
<frame name="f2" src=" www.bbc.com " />
</frameset>
</html>

Please Log in or Create an account to join the conversation.

Time to create page: 0.633 seconds
Powered by Kunena Forum