Video pause() Method
Definition and Usage
pause()
to pause the currently playing video.
Tip:This method is usually used with play() method used together.
Tip:Please use controls attribute Display video controls (such as play, pause, search, volume, etc.).
Example
With play and pause buttons video:
var x = document.getElementById("myVideo"); function playVid() { x.play(); } function pauseVid() { x.pause(); }
Syntax
videoObject.pause()
Parameter
None.
Return Value
No Return Value.
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | 9.0 | Support | Support | Support |