Video paused Property - Javascript DOM HTML Element

Javascript examples for DOM HTML Element:Video


The paused property returns whether the video is paused.

This property is read-only.

Return Value

A Boolean, returns true if the video is paused. Otherwise it returns false

The following code shows how to check if the video is paused:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>

<video id="myVideo" width="320" height="240" controls>
  <source src="your.mp4" type="video/mp4">
  <source src="your.ogg" type="video/ogg">
  Your browser does not support the video tag.
</video>/*w w w  .  j a v a 2  s  .c  om*/

<button onclick="myFunction()">Test</button>

<p id="demo"></p>

function myFunction() {
    var x = document.getElementById("myVideo").paused;
    document.getElementById("demo").innerHTML = x;


Related Tutorials