The audio element has a loop boolean property that you can set to auto-loop its playback. Another option would be to add and event listener which responds to the "ended" event of the audio element. In your handler, set the position of the audio back to 0, and play anew.