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

Q1151 How can I load an image in a hidden frame, and then if it loads replace a blank image in the displayed frame?

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

Try:

In the hidden frame:

<script language="JavaScript"><!--
function verify(ImageFileName) {
    parent.display.document.image['ShowImageHere'].src = ImageFileName;
}
//--></script>

<img src="display.gif" onLoad="verify(this.src)">

In the display frame

<img src="blank.gif" name="ShowImageHere">

©2018 Martin Webb