Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q653 How can I make sure needed images are loaded before I do a redirect to another page?

irt.org | Knowledge Base | JavaScript | Image | Q653 [ previous next ]

Q653 How can I make sure needed images are loaded before I do a redirect to another page?

Load them all as WIDTH="1" HEIGHT="1":

<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript"><!--
function loaded() {
    location.href = 'nextpage.htm';
}
//--></SCRIPT>
</HEAD>

<BODY onLoad="loaded()">

<IMG SRC="picture1.gif" HEIGHT="1" WIDTH="1">
<IMG SRC="picture2.gif" HEIGHT="1" WIDTH="1">
<IMG SRC="picture3.gif" HEIGHT="1" WIDTH="1">
<IMG SRC="picture4.gif" HEIGHT="1" WIDTH="1">
<IMG SRC="picture5.gif" HEIGHT="1" WIDTH="1">

</BODY>
</HTML>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.