The HTML onended Attribute is a event attribute which works when the audio/video is ended. We can add some custom message in this event like “Thank for watching”, “Share”, etc.
Usage: This attribute is used in <audio> and <video> element.
- Attribute Value: This attribute contains single value script which works when onended event attribute call.
- Google Chrome
- Internet Explorer
- Apple Safari