HTMLMediaElement.onerror

The onerror property of the HTMLMediaElement interface is the event handler for processing error events.

The error event fires when some form of error occurs while attempting to load or perform the media.

Value

A function which serves as the event handler for the error event. When an error occurs, the specified function will be called. If null, no error handler is in effect.

Specifications

No specification found

No specification data found for api.HTMLMediaElement.onerror.
Check for problems with this page or contribute a missing spec_url to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.

Browser compatibility

No compatibility data found for api.HTMLMediaElement.onerror.
Check for problems with this page or contribute missing data to mdn/browser-compat-data.

See also