Полезная информация

JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference

Image.onload() Handler


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


Navigator 3.0


<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


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