onabort Event
Definition and Usage
The onabort event occurs when the loading of audio/video is interrupted.
This event occurs when the media data download is interrupted, not due to an error.
Tip:Events related to the interference in the media loading process are:
Example
Execute JavaScript when the video loading is interrupted:
<video onabort="myFunction()">
Syntax
In HTML:
<element onabort="myScript">
In JavaScript:
object.onabort = function(){myScript};
In JavaScript, use the addEventListener() method:
object.addEventListener("abort", myScript);
ملاحظة:Internet Explorer 8 or earlier versions do not support addEventListener() Method。
Technical Details
Bubble: | Not Supported |
---|---|
Cancelable: | Not Supported |
Event Type: | If generated from the user interface,UiEvent。 Otherwise Event。 |
Supported HTML Tags: | <audio> و <video> |
DOM Version: | Events of Level 3 |
دعم المتصفحات
الرقم في الجدول يوضح إصدار المتصفح الأول الذي يدعم هذا الحدث بشكل كامل.
أحداث | Chrome | IE | Firefox | Safari | Opera |
---|---|---|---|---|---|
onabort | دعم | 9.0 | دعم | دعم | دعم |
ملاحظة:ملاحظة: لا يدعم متصفح Internet Explorer 11 في Windows 7 أحداث الـonabort.