HTML Audio/Video DOM Reference
Set time position to 5 seconds:
The currentTime property sets or returns the current position (in seconds) of the audio/video playback.
When setting this property, the playback will jump to the specified position.
![]()
The currentTime property is supported in all major browsers.
Note: This property is not supported in Internet Explorer 8 and earlier.
Set the currentTime property:
Return the currentTime property:
| Value | Description |
|---|---|
| seconds | Indicates the position for the playback of the audio/video, in seconds |
| Return Value: | A Number, representing seconds |
|---|
HTML Audio/Video DOM Reference
Your message has been sent to W3Schools.