HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
The onabort attribute defines a script to be run if the loading of the media file aborts."
The onabort
attribute defines a script to be run if the loading of the media file aborts.
This event occurs when the media data download has been aborted, and not because of an error.
The onabort
attribute is part of the Event Attributes, and can be used on the following elements:
Alert that the loading of a video has been aborted:
<video id="myVideo" onabort="alert('Video load aborted')">
The onabort
attribute has the following browser support for each element:
Element | |||||
---|---|---|---|---|---|
audio | Yes | 9.0 | Yes | Yes | Yes |
embed | Yes | Not supported | Yes | Yes | Yes |
img | Yes | Yes | Yes | Yes | Yes |
object | Yes | Not supported | Yes | Yes | Yes |
video | Yes | 9.0 | Yes | Yes | Yes |