//Alert that the video has started to play: var vid = document.getElementById("myVideo"); vid.onplay = function() { alert("The video has started to play"); };