/

HTML / CSS / JavaScript Tutorial

JavaScript media object method: play()

[this page | pdf | back links]

The play() method of the JavaScript DOM object corresponding to HTML media elements (i.e. <audio> and <video> elements) starts playing the media.

 

It has the following syntax with no parameters.

 

object.play()

 


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


Desktop view | Switch to Mobile