Image onabort Event
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





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)