JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

Image.onload() Handler

Name

Image.onload() Handler---invoked when image finishes loading

Availability

Navigator 3.0

Synopsis

<IMG SRC="url"
     onLoad="handler" a definition of the handler
     ...>
image.onload  a reference to the handler
image.onload();   an explicit invocation of the handler

Description

onload() is an event handler invoked when the browser successfully finishes loading the image specified by an <IMG> tag. This event handler is defined by the onLoad attribute of an <IMG> tag. The value of this attribute may be any number of JavaScript statements, separated by semicolons; these statements will be executed when the image is completely loaded.

See Also

"Image", "Image.onabort()", "Image.onerror()"


Previous Home Next
Image.onerror() Book Index Image.src

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell