HTML onabort Event Attribute

Description

The event attribute onabort is triggered when a user interrupts the download of a media file.

Actions that trigger this event during document loading:

  • stop loading a document by pressing the STOP button of the browser or the ESC key;
  • Going to another page by the user.

Syntax

<element onabort="script">

Values

  • scriptThe name of the script to use when the event has been triggered.

Example

Currently no example, coming soon.

Supported Tags

<audio>, <embed>, <img>, <object> and <video>

Browser Support

Desktop
Explorer Edge Chrome Firefox Opera Safari
XXYesXXX
Tablets / Mobile
Android Chrome Firefox Opera Safari Samsung
YesYesXXXX