HTML | DOM Video ended Property
The Video ended property in HTML DOM is used to return whether the playback of the video has ended or not.
When the playback position is at the end of the video, we consider the video has ended.
The Video ended property is a read-only property.
Return Value: The Video ended property returns a boolean true if the video has ended, else it returns false.
Below program illustrates the Video ended Property :
Example: Finding out if the video has ended or not.
- Before Clicking The Button:
- After Clicking The Button:
Supported Browsers: the browser supported by HTML | DOM Video ended Property are listed below:
- Google Chrome
- Internet Explorer
- Apple Safari
Attention reader! Don’t stop learning now. Get hold of all the important Comcompetitivepetitve Programming concepts with the Web Design for Beginners | HTML course.