onsuspend event

onsuspend event The event object

JavaScript is performed when the browser reads media data aborted:

<video onsuspend="myFunction()">


Definitions and usages

The onsuspend event is triggered when the browser reads the media data aborted.

Tip: Events that affect media loading are:


Browser support

The numbers in the table support the version number of the first browser for the event.

Event
onsuspend Yes 9.0 Yes Yes Yes


Grammar

In HTML:

< element onsuspend=" myScript ">

In JavaScript:

object .onsuspend=function(){ myScript };

In JavaScript, use the addEventListener() method:

object .addEventListener("suspend", myScript );

Note: The addEventListener() method is not supported in Internet Explorer 8 and earlier versions of IE.


Technical details
Whether to support bubbling: No
Can I cancel: No
Types of events: Event
Supported HTML tags: <audio>, <video>


onsuspend event The event object