Back to Content

HTMLMediaElement: pause() method

files/en-us/web/api/htmlmediaelement/pause/index.md

latest385 B
Original Source

{{APIRef("HTML DOM")}}

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

js-nolint
pause()

Parameters

None.

Return value

None ({{jsxref("undefined")}}).

Exceptions

None.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}