Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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?

irt.org | Knowledge Base | JavaScript | Redirect | Q112 [ previous next ]

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?

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?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.