onstalledEvent

事件对象参考手册Event Object

Examples

Execute JavaScript when the browser tries to fetch media data but the data is unavailable:

<video onstalled="myFunction()">



Definition and Usage

The onstalled event triggers when the browser fetches media data, but the media data is unavailable.

Tip:The events that affect media loading are:


Browser Support

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

Event
onstalled Yes 9.0 Yes Yes Yes


Syntax

In HTML:

<element onstalled="myScript">

In JavaScript:

object.onstalled=function(){myScript};

In JavaScript, using the addEventListener() method:

object.addEventListener("stalled", myScript);

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


Technical Details
Does it bubble: No
Is it cancelable: No
Event type: Event
Supported HTML tags: <audio>, <video>


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