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.