<html> <head> <script language="JavaScript"> // create an image object objImage = new Image(); // set what happens once the image has loaded objImage.onLoad=imagesLoaded(); // preload the image file objImage.src='images/image1n.gif'; // function invoked on image load function imagesLoaded() { document.location.href='index2.html'; } </script> </head> <body> Please wait, loading images... </body> </html>