192
rated 0 times
[
199]
[
7]
/ answers: 1 / hits: 20353
/ 11 Years ago, fri, november 15, 2013, 12:00:00
I am trying to redirect to a different URL after a html video has ended. This cannot be using a FLASH player as it won't work on iOS devices. Any help or direction will be appreciated. Here is my code:
<head>
<script type=text/javascript>
myVid = document.getElementById(video1);
function redirect()
{
if (myVid.ended == true) {
window.location = http://www.google.com;
}
</script>
</head>
<body>
<video id=video1 controls=controls>
<source src=video.mp4 type=video/mp4>
Your browser does not support HTML5 video.
</video>
</body>
More From » html