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.