JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

Image.onerror() Handler

Name

Image.onerror() Handler---invoked on error during image loading

Availability

Navigator 3.0

Synopsis

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

Description

onerror() is an event handler invoked when an error occurs while the specified image is loading (for example, the network goes down, or the specified URL does not contain image data). This event handler is defined by the onError 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 only when an error occurs while loading the specified image.

See Also

"Image", "Image.onabort()", "Image.onload()"


Previous Home Next
Image.onabort() Book Index Image.onload()

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