HTML onended attribute: This attribute can be used when the audio/video has reached to end. This event is useful for messages like “thanks for listening”, “thanks for watching”, etc. And the onended attribute is a section of the Event Attributes.
HTML onended attribute
This attribute has <audio> and <video> elements.
Syntax: <element onended=”script”>
Browser Support
This attribute supports different types of browsers. They are as follows:
- Chrome
- Firefox
- InternetExplorer -9.0
- Safari
- Opera