[Chapter 21] Reference: Image.onload()
Author: David Flanagan
Date: Fri Aug 29 11:16:46 1997

#

| Chapter 21 JavaScript Reference |

# 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()"

Image.onerror() |  | Image.src