Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q112 How do I use an automatic redirection script or META tag to open a page in a frame, and keep refreshing it every 10 seconds?

You are here: irt.org | FAQ | JavaScript | Redirect | Q112 [ previous next ]

If you place this in the page to be refreshed every 10 seconds then it will:

<META HTTP-EQUIV="refresh" CONTENT="10;http://www.somewhere.com/">

To use JavaScript to refresh another frame every 10 seconds:

<SCRIPT LANGUAGE="JavaScript"><!--
function refreshFrame() {
    parent.otherFrameName.location.href = 'http://www.somewhere.com/';
    setTimeout('refreshFrame()',10000);
}

refreshFrame();
//--></SCRIPT>

Feedback on 'Q112 How do I use an automatic redirection script or META tag to open a page in a frame, and keep refreshing it every 10 seconds?'

©2018 Martin Webb