GlobalEventHandlers.onended

The onended property of the GlobalEventHandlers mixin is the event handler 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
HTML Standard (HTML)
# handler-onended

Browser compatibility

BCD tables only load in the browser

See also