document.getElementById('myVideoID').addEventListener('ended',function(e){ console.log("video has ended"); },false);