HTML Audio/Video DOMpause()Methods
HTML Audio/Video DOM Reference Manual
Example
A segment of video with play and pause buttons:
var myVideo=document.getElementById("video1");
function playVid()
{
myVideo.play();
}
function pauseVid()
{
myVideo.pause();
}
function playVid()
{
myVideo.play();
}
function pauseVid()
{
myVideo.pause();
}
Try it Yourself »
Definition and Usage
The pause() method stops (pauses) the currently playing audio or video.
Browser Support
![]()
![]()
![]()
![]()
![]()
All major browsers support the pause() method.
Note:Internet Explorer 8 and earlier versions do not support this method.
Syntax
audio|video.pause()
HTML Audio/Video DOM Reference Manualother extensions