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

Q1405 Is there a Netscape Navigator alternative for Internet Explorer's 'complete' property?

You are here: irt.org | FAQ | JavaScript | Image | Q1405 [ previous next ]

Yes: complete

Supported since Netscape Navigator 3 - yet in Netscape Navigator 4 - "provides an incorrect true reading before the image has completely loaded"

You can create your own image complete property though:

<img name="myImage" src="test.gif" onLoad="this.myComplete=true">

<form>
<input type="button" value="test" onClick="if (document.myImage.myComplete) alert('image loaded'); else alert('image not loaded')">
</form>

©2018 Martin Webb