HTML onseeking Attribute

❮ HTML Attributes


<video onseeking="myFunction()">


The seeking event run when the user starts moving/skipping to a new position in the audio/video.

Standard Syntax

<element onseeking="script">

Browser Support


Applies to:

The onseeking attribute can be used on the following element:

Element Attribute
<audio> seeking
<video> seeking

Attribute Values

Value Description
script Specifies a script that run when the media is seeking.
❮ HTML Attributes