HTML onstalled Event Attribute

Description

The event attribute onstalled occurs when the browser tries to receive multimedia data, but it is not available.

Events that occur when there are any violations in the process of downloading multimedia data include:

Syntax

<element onstalled="script">

Values

  • scriptThe name of the script to use when the event has been triggered.

Example

<!DOCTYPE html>
<html>
<body>

<video controls onstalled="myFunction()">
  <source src="sample.mp4" type="video/mp4">
  Your browser does not support HTML5 video.
</video>

<script>
function myFunction() {
    alert("Data of this media not available");
}
</script>

</body>
</html>

Supported Tags

<audio> and <video>

Browser Support

Desktop
Explorer Edge Chrome Firefox Opera Safari
XXYes3.5XX
Tablets / Mobile
Android Chrome Firefox Opera Safari Samsung
YesYes4XXX