Easy Tutorial
❮ Jsref Obj Math Jsref Ln2 ❯

Video pause() Method

Video Object

Example

A video with play and pause buttons:

var x = document.getElementById("myVideo"); function playVid() { x.play(); } function pauseVid() { x.pause(); }

Definition and Usage

The pause() method stops (pauses) the currently playing audio or video.

Tip: This method is often used with the play() method.

Tip: Use the controls attribute to display video controls (such as: play, pause, seek, volume, etc.).


Browser Support

All major browsers support the pause() method.

Note: Internet Explorer 8 and earlier versions do not support this method.


Syntax

Parameters

| None |

Return Value

| No return value |


❮ Jsref Obj Math Jsref Ln2 ❯