Is there an oncomplete event for HTML5 audio? I could not find anything on this. I am trying to play a sound after it completes.
oncomplete
Well, specifically I am
There is the ended event . . .
ended
http://dev.w3.org/html5/spec/Overview.html#event-media-ended
Example:
var audioElement = document.getElementById("myAudio"); audioElement.addEventListener('ended', function() { // Audio has ended when this function is executed. },false);