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”>
This attribute supports different types of browsers. They are as follows:
- InternetExplorer -9.0