Advertisement
Home Open Editor ❯

HTML ontimeupdate Attribute

Example

<video ontimeupdate="myFunction()">

Try this code ❯

Meaning

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


Standard Syntax

<element ontimeupdate="script">


Applies to:

The ontimeupdate attribute can be used on the following element:


Advertisement

Attribute Values

Value Description
script Specifies a script that run when the media is time is updated.
Home Open Editor ❯
Advertisement