Latest web development tutorials

HTML DOM Video ended property

Video Object Reference Video Object

Examples

See if the video playback has ended:

var x = document.getElementById ( "myVideo") ended.;

x The output is:

true

try it"

Definition and Usage

ended property returns whether the video has ended.

If the playback position is located at the end of the video, then audio / video has ended.

Note: This property is read-only.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support ended property.

Note: Internet Explorer 8 or earlier browser does not support this property.


grammar

videoObject .ended

technical details

return value: Boolean value that, if the play is over, it returns true. Otherwise, it returns false.


Video Object Reference Video Object