/

HTML / CSS / JavaScript Tutorial

JavaScript media object property: duration

[this page | pdf | back links]

The duration property of the JavaScript DOM object corresponding to HTML media elements (i.e. <audio> and <video> elements) returns the length of media (in seconds).

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)


Desktop view | Switch to Mobile