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

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?

irt.org | Knowledge Base | JavaScript | Misc | Q1567 [ previous next ]

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?

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


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 6th July 2009. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2009 irt.org, All Rights Reserved.