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

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

You are here: irt.org | FAQ | JavaScript | Window | Q36 [ previous next ]

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

©2018 Martin Webb