onstalled event

Definition and usage

An onstalled event occurs when the browser tries to retrieve media data but the data is not available.

Tip:The related events that occur when there is some interference in the media loading process are:

Example

Execute JavaScript when the browser tries to retrieve media data but the data is not available:

<video onstalled="myFunction()">

Try it yourself

Syntax

In HTML:

<element onstalled="myScript">

Try it yourself

In JavaScript:

object.onstalled = function(){myScript};

Try it yourself

In JavaScript, use the addEventListener() method:

object.addEventListener("stalled", myScript);

Try it yourself

Note:Internet Explorer 8 or earlier versions do not support addEventListener() method.

Technical details

Bubble: Not supported
Can be canceled: Not supported
Event Type: Event
Supported HTML Tags: <audio> and <video>
DOM Version: Level 3 Events

Browser Support

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

Events Chrome IE Firefox Safari Opera
onstalled Support 9.0 Support Support Support