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

HTML Reference Manual

HTML Tag Directory

HTML Audio/Video DOM seeking attribute

 HTML Audio/Video DOM Reference Manual

Online Example

Show whether the user is currently seeking in the video:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HTML Audio/Video seeking attribute usage-Basic Tutorial(oldtoolbag.com)</title>
<script>
function isSeeking()
{ 
  myVid=document.getElementById("video"1);
  document.getElementById("span"1").innerHTML=("Seeking: " + myVid.seeking());
} 
</script>
</head>
<body>
<video id="video"1" controls="controls" onseeking="isSeeking()" onseeked="isSeeking()">
  <source src="movie.mp"4"type="video"/mp4">
  <source src="movie.ogg" type="video/ogg">
  Your browser does not support HTML5 video tag.
</video>
<p>Try to address in the video <span id="span1></span></p>
</body>
</html>
Test to see ‹/›

Definition and Usage

The seeking property returns whether the user is currently addressing the audio/Seeking in the video.
Seeking is when you are in the audio/Moving in the video/when jumping to a new position.
Note: This property is read-only

Browser Compatibility

IEFirefoxOperaChromeSafari

All mainstream browsers partially support the seekable property.

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

Syntax

audio|video.seeking

Return Value

TypeDescription
Booleantrue|false. If the user is addressing, it is true, otherwise it is false.
 HTML Audio/Video DOM Reference Manual