onabort Event

Definition and Usage

The onabort event occurs when the loading of audio/video is aborted.

This event occurs when the media data download is aborted, not due to an error.

Tip:Events related to interference in the media loading process are:

Example

Execute JavaScript when the video loading is aborted:

<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

Bubbling: Not Supported
Cancelable: Not Supported
Event Type: If generated from the user interface,UiEvent。Otherwise Event
Supported HTML Tags: <audio> and <video>
DOM Version: Level 3 Events

ব্রাউজার সমর্থন

তালিকায় নম্বরগুলি প্রথম সম্পূর্ণ সমর্থনকারী ব্রাউজার সংস্করণকে নির্দেশ করে

ইভেন্ট Chrome IE Firefox Safari Opera
onabort সমর্থন 9.0 সমর্থন সমর্থন সমর্থন

মন্তব্য:Windows 7-এর Internet Explorer 11 onabort ইভেন্টকে সমর্থন করে না。