In this example, we use the HTML DOM to assign an "ontimeupdate" event to an audio element. When the user starts to play the audio, or skips to a new position in the audio, a function is triggered, which will display the current position (in seconds) of the audio playback.
Playback position: