Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Audio seeking attribute

Audio seeking attribute

Audio Object Reference Audio object

Example

Show whether the user is seeking within the audio:

var x = document.getElementById("myAudio");

document.getElementById("mySpan").innerHTML=("Seeking: " + x.seeking);

x Output value:

Seeking: true

Try it »


Definition and Usage

The seeking attribute returns whether the user is currently seeking within the audio.

Seeking refers to the user moving or jumping to a new position within the audio.

Note: This attribute is read-only.


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the seeking attribute.

**Note:** Internet Explorer 8 or earlier browsers do not support this property.


Syntax

audioObject

.seeking

Technical Details

Return Value: Boolean. true if the user is seeking, otherwise false.

Audio Object Reference Audio object