English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

HTML Tag Reference

HTML Audio/Video DOM paused attribute

paused tells whether the video is paused

 HTML Audio/Video DOM Reference Manual

Online Example

Check if the video is paused:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HTML Audio/Video paused attribute usage-Basic Tutorial(oldtoolbag.com)</title>
</head>
<body>
<button onclick="isVidPaused()" type="button">Video is paused?</button>
<br> 
<video id="video1" controls="controls">
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.ogg" type="video/ogg">
  Your browser does not support HTML5 video tag.
</video>
<script>
myVid=document.getElementById("video1");
function isVidPaused()
{ 
  alert(myVid.paused);
} 
</script>
</body>
</html>
Test to see ‹/›

Definition and Usage

The paused property returns audio/Whether the video has been paused.
Note: This property is read-only.

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the paused property.

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

Syntax

audio|video.paused

Technical Details

Return value:Boolean value, true|false.
true indicates audio/The video has been paused, otherwise false.
 HTML Audio/Video DOM Reference Manual