Latest web development tutorials

onsuspend event

Event Object Reference Event objects

Examples

Execute JavaScript in the browser to read media data abort:

<Video onsuspend = "myFunction ()">



Definition and Usage

onsuspend event is triggered when the media data in the browser reads abort.

Tip: loaded media impact of the event are:


Browser Support

Figures in the table represent the first browser to support this version of events.

event
onsuspend Yes 9.0 Yes Yes Yes


grammar

In HTML:

<Elementonsuspend = "myScript">

In JavaScript:

object .onsuspend = function () {myScript };

JavaScript, use the addEventListener () method:

object .addEventListener ( "suspend", myScript );

Note: Internet Explorer 8 and earlier versions of IE do not support addEventListener () method.


technical details
Whether to support the bubble: No
It can be canceled: No
Event Type: Event
Supported HTML tags: <Audio>, <video>


Event Object Reference Event objects