HTML onstalled Attribute

HTML onstalled Attribute: The HTML onstalled attribute defines a script to run when the browser is trying to get media data, but data is not available. The events that happen when there is some kind of disturbance to the media loading process, are:

  • onerror
  • onsuspend
  • onabort
  • onemptied

HTML onstalled Attribute

The HTML onstalled attribute can be applied on the <audio> and <video> elements. HTML 4 does not support <audio>, <video> tag. It was newly added to HTML5.

Syntax: <element onstalled =”script”>



Browser Support

This attribute is supported by the following browsers:

  • Chrome
  • Firefox
  • Internet Explorer-9.0
  • Safari
  • Opera