Possible Duplicate:
redirecting the page after a video plays using an html5 video player
Is there way to redirect this video
<video class="video-js vjs-default-skin" id="player1" controls="controls" poster="video/image.jpg" preload="auto" data-setup="{}" autoplay="autoplay">
The browser you are using does not support viewing HTML5 Video,please open it in Chrome or Firefox .
</video>
After it stops playing?
I tried this but did not work.
<script>
var video = document.getElementsById('player1');
video.onended = function(e) {
window.location.replace("http://stackoverflow.com");
}
</script>