HTMLMediaElement.pause()

The HTMLMediaElement.pause() method will pause playback of the media, if the media is already in a paused state this method will have no effect.

Syntax

HTMLMediaElement.pause()

Parameters

None.

Return value

None.

Exceptions

None.

Specifications

Specification Status Comment
HTML Living Standard
The definition of 'pause()' in that specification.
Living Standard Initial definition; living specification.
HTML5
The definition of 'pause()' in that specification.
Recommendation Initial definition.

Browser compatibility

BCD tables only load in the browser