onsuspendEvent

事件对象参考手册Event Object

Example

Execute JavaScript when the browser suspends reading media data:

<video onsuspend="myFunction()">



Definition and Usage

The onsuspend event is triggered when the browser suspends reading media data.

Note:The events that affect media loading are:


Browser Support

The numbers in the table specify the first browser version that supports this event.

Event
onsuspend Yes 9.0 Yes Yes Yes


Syntax

In HTML:

<element onsuspend="myScript">

In JavaScript:

object.onsuspend=function(){myScript};

In JavaScript, using the addEventListener() method:

object.addEventListener("suspend", myScript);

Note:Internet Explorer 8 and earlier IE versions do not supportaddEventListener()the method.


Technical Details
Does it bubble: No
Can it be canceled: No
Event type: Event
Supported HTML tags: <audio>, <video>


事件对象参考手册Event Object Other extensions