ontimeupdate event Event Object Example Execute JavaScript when the current playback position changes: Try it » The bottom of this article contains more examples. Definition and Usage The ontimeupdate event is triggered when the current playback position of the video/audio (audio/video) changes. This event is invoked in the following ways: Play the video/audio (audio/video) Relocate the playback position of the video/audio (audio/video). Tip: This event is usually used together with the Video object's currentTime property, which returns the current playback position of the video/audio (audio/video). Browser support The numbers in the table indicate the version number of the first browser to support the event. Event ontimeupdate Yes 9.0 Yes Yes Yes Syntax In HTML: < element ontimeupdate=" myScript ">Try it In JavaScript: object .ontimeupdate=function(){ myScript }; Try it In JavaScript, use the addEventListener() method: object .addEventListener("seeking", myScript ); Try it Note: Internet Explorer 8 and earlier IE versions do not support addEventListener() method. Technical Details Does it support bubbling: No Is it cancelable: No Event type: Event Supported HTML tags: , More examples Example Execute JavaScript when the user starts playing audio or relocates the audio playback position: Try it » Example Use the currentTime property to set the current playback position to 5 seconds: document.getElementById("myVideo").currentTime = 5; Try it » Event Object