HTML ontimeupdate Attribute

❮ HTML Attributes

Example

<video ontimeupdate="myFunction()">

Meaning

The timeupdate event run when the current playback position has changed.




Standard Syntax

<element ontimeupdate="script">



Browser Support




Status




Applies to:

The ontimeupdate attribute can be used on the following element:

Element Attribute
<audio> ontimeupdate
<video> ontimeupdate






Attribute Values

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