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

#

| Chapter 21 JavaScript Reference |

# Image.onabort() Handler

## Name

Image.onabort() Handler---invoked when user aborts image loading

## Availability

Navigator 3.0

## Synopsis

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

## Description

`onabort()` is an event handler invoked when the user aborts the loading of an image (for example, by clicking the Stop button). This event handler is defined by the `onAbort` 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 the user aborts loading for the specified image.

## See Also

"Image", "Image.onerror()", "Image.onload()"

Image.name |  | Image.onerror()