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

Q1640 How can I replace a frameset with a single page after a delay?

You are here: irt.org | FAQ | JavaScript | Frame | Q1640 [ previous next ]

The following loads the mainpage.html as the visible page five seconds after the frames in the frameset have completely loaded:

<frameset cols="100%,*" onLoad="setTimeout('top.location.href=\'mainpage.html\''),5000);">
<frame src="splashpage.html">
<frame src="mainpage.html">
</frameset>

This could be used to display a splash page (a fast loading "please wait" page), whilst a large main page is being downloaded.

©2018 Martin Webb