GlobalEventHandlers.onended

The onended property of the GlobalEventHandlers mixin is the EventHandler for processing ended events.

The ended event is fired when playback has stopped because the end of the media was reached.

Syntax

element.onended = handlerFunction;
var handlerFunction = element.onended;

handlerFunction is either null or a JavaScript function specifying the handler for the event.

Specifications

Specification Status Comment
HTML Living Standard
The definition of 'onended' in that specification.
Living Standard

Browser compatibility

BCD tables only load in the browser

See also