HTML ontimeupdate Attribute

❮ HTML Attributes


<video ontimeupdate="myFunction()">


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

Standard Syntax

<element ontimeupdate="script">

Browser Support


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