Jump to content

Redirection of web page after ends of video


Recommended Posts

You will have to add an event to your video tag: onended. Then, you need a function that can be called from the video element. Example:

<script>  function redirect() {	document.location="index_2.html";  }</script> <video src="index_vid.WEBM" onended="redirect()">Your browser cannot display the video element.</video>

When the video has ended, the function redirect() will be called.In this function, we change the client's location. I hope this helps.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...