GlobalEventHandlers.onended

The onended property sets and returns the event handler for the ended event.

Syntax

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

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

Notes

See the DOM event handlers page for information on working with on... handlers.

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

See the ended event documentation for more information about the event.

Specification

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

 Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Basic supportChrome Full support YesEdge ? Firefox Full support 3.5IE ? Opera ? Safari ? WebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android Full support 4Opera Android ? Safari iOS ? Samsung Internet Android ?

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown

Document Tags and Contributors

Contributors to this page: fscholz, sideshowbarker, wbamberg, rolfedh, Guillaume-Heras
Last updated by: fscholz,