Share via


ontimeupdate event

[This documentation is preliminary and is subject to change.]

Occurs to indicate the current playback position.

HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.8.9.12Internet Explorer 9

Syntax

HTML Attribute <element ontimeupdate = "handler(event)">
Event Property object.ontimeupdate = handler;
attachEvent Method object.attachEvent("ontimeupdate", handler)
addEventListener Method object.addEventListener("timeupdate", handler, useCapture)

Standards information

Event information

Synchronous No
Bubbles No
Cancelable No

Event handler parameters

Remarks

Use the currentTime property to retrieve the current playback position. For the total length of the audio or video clip, use duration.

To invoke this event, do one of the following:

  • Play the video.
  • Move the position indicator on the playback controls.

See also

Reference

currentTime

duration

ondurationchange

 

 

Build date: 1/25/2012