/

HTML / CSS / JavaScript Tutorial

JavaScript media object method: pause()

[this page | pdf | back links]

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

 

It has the following syntax with no parameters.

 

object.pause()

 


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


Desktop view | Switch to Mobile