To preload a whole html page we can directly load a src into the layer tag for Netscape 4 and use an iframe for IE4 & 5 and NS6. At the body tah we assign an onLoad event to 'grab the src'. All that needs to be modified is the var url statement to point to whatever page you wish to preload.


<HTML>

<HEAD>


<SCRIPT>

var url = 'http://nirvana.media3.net/stigmata/index.html';

</SCRIPT>

</HEAD>


<BODY onLoad="location.href = url;">


<H1>Page is loading...</H1>


<SCRIPT>

if (document.layers)

document.write('<LAYER SRC="' + url + '" VISIBILITY="hide"><\/LAYER>');


else if (document.all || document.getElementById)

document.write('<IFRAME SRC="' + url + '" STYLE="visibility: hidden;"><\/IFRAME>');


else location.href = url;

</SCRIPT>


</BODY>

</HTML> 

Return to the Alchemy Index

http://dhtmlnirvana.com/

http://dhtmlnirvana.com/svg/index.htm

http://dhtmlnirvana.com/ajax/ajax_tutorial/

http://dhtmlnirvana.com/alchemy/externalload.htm

http://dhtmlnirvana.com/program/permalink/ajax_history.html

http://dhtmlnirvana.com/content/dhtml.html

http://dhtmlnirvana.com/ajax/gallery/ajaxgallery.html

http://dhtmlnirvana.com/spiritual/2005/05/07/uber-dream-analysis/

http://dhtmlnirvana.com/content/widgets/killautolink/index.html

http://dhtmlnirvana.com/oldalchemy/externalload.htm

http://dhtmlnirvana.com/permalink/wpfe.html

http://dhtmlnirvana.com/svg/intro1.htm

http://dhtmlnirvana.com/program/permalink/ajax_tutorial1.html

http://dhtmlnirvana.com/content/blog.html

http://dhtmlnirvana.com/svg/

http://dhtmlnirvana.com/program/

http://dhtmlnirvana.com/spiritual/

http://dhtmlnirvana.com/alchemy/preload.htm