English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
paused tells whether the video is paused
HTML Audio/Video DOM Reference Manual
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 ‹/›
The paused property returns audio/Whether the video has been paused.
Note: This property is read-only.
IEFirefoxOperaChromeSafari
All major browsers support the paused property.
Note:Internet Explorer 8 and earlier versions do not support this property.
audio|video.paused
Return value: | Boolean value, true|false. true indicates audio/The video has been paused, otherwise false. |
---|