onLoad = "script command(s)"
onLoad event is fired when the image is finished being downloaded. For
example, the following code displays an alert box when the image is
SRC="../graphics/pumpkin.gif" ALT="picture of a pumpkin"
which gives us
Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of
the Open Content License and the Open Publication License.
Contents may be redistributed or republished freely under these terms so long as credit to the original creator and
contributors is maintained.
onLoad is not a very reliable event handler. Netscape
particularly has trouble firing
onLoad when the image is malformed in some way
or if the image is loaded from cache instead of freshly downloaded from