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

Q36 Is it possible to load several predefined www pages into one window sequentially?

irt.org | Knowledge Base | JavaScript | Window | Q36 [ previous next ]

Q36 Is it possible to load several predefined www pages into one window sequentially?

You can use a hidden frame to preload a document:

<frameset rows="99%,*">
    <frame src="1st.html" name="main">
    <frame src="2nd.html" name="invisible">
</frameset>

In that hidden preloaded document, i.e. "2nd.html", you can utilise the onLoad event to preload another hidden document:

<html>
<body onLoad="if (parent.main.location.href != location.href) location.href='3nd.html'">
</body>
</html>

Note this will only trigger the preloading of the next document if it loaded in the invisible window.

Feedback on 'Q36 Is it possible to load several predefined www pages into one window sequentially?'


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.