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

Q1567 How can I download a page in the background of another, or preload the images and sound of a page behind another more simple page, then after a pre determined length of time go to the ready assembled page?

You are here: irt.org | FAQ | JavaScript | Misc | Q1567 [ previous next ]

The most compatible way is a frameset (both pages must come from same server):

<html>
<frameset rows="100%,*" onLoad="top.main.location = top.hidden.location.href">
<frame name="main" src="splash.html">
<frame name="hidden" src="preload.html">
</frameset>
</html>

It will swap the pages after preload.html has loaded everything... If you need it to wait still some more time use this:

<frameset rows="100%,*" onLoad="setTimeout('top.main.location = top.hidden.location.href',10000)">

it will load everything and then wait 10 secs before swapping.

Feedback on 'Q1567 How can I download a page in the background of another, or preload the images and sound of a page behind another more simple page, then after a pre determined length of time go to the ready assembled page?'

©2018 Martin Webb