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

Q973 Is it possible to reload a page after it has loaded - but only once?

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

Q973 Is it possible to reload a page after it has loaded - but only once?

If you use frames - then:

<body onLoad="parent.reloadOnceOnly()">

And then in the parent:

<html>
<head>
<script language="JavaScript"><!--
var reloaded = false;

function reloadOnceOnly() {
    if (!reloaded) {
        reloaded = true;
        window.frameName.history.go(0);
    }
}
//--></script>
</head>

<frameset rows="50%,*">
<frame src="page1.htm">
<frame src="page2.htm" name="frameName">
</frameset>
</html>

Feedback on 'Q973 Is it possible to reload a page after it has loaded - but only once?'


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.