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.