Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Image onabort Event

Image onabort Event

Image Object Reference Image Object


Definition and Usage

The onabort event occurs when the loading of an image is interrupted.

Syntax

onabort="

JavaScriptCode

"

Parameters Description
JavaScriptCode Required. Specifies the JavaScript to be executed when the event occurs.

Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the onabort event


Example

In this example, if the loading of the image is interrupted, a dialog box is displayed:







Runoob Tutorial(runoob.com)


















Image Object Reference Image Object