Video pause() Method
Example
A video with play and pause buttons:
var x = document.getElementById("myVideo");
function playVid()
{
x.play();
}
function pauseVid()
{
x.pause();
}
Try it yourself »
Definition and Usage
The pause() method halts (pauses) the currently playing video.
Tip: This method is often used together with the play() method.
Tip: Use the controls property to display video controls (like play, pause, seeking, volume, etc, attached on the video).
Browser Support
The pause() method is supported in all major browsers.
Note: This method is not supported in Internet Explorer 8 and earlier.
Syntax
videoObject.pause()
Parameters
None |
Return Value
No return value |
Video Object