1<video src="video.ogv" id="myVideo">
2 video not supported
3</video>
4
5<script type='text/javascript'>
6 document.getElementById('myVideo').addEventListener('ended',myHandler,false);
7 function myHandler(e) {
8 // What you want to do after the event
9 }
10</script>
11