I need a Javascript code that will redirect the person on the page after 3 min and 52 seconds?
animesans.books
2010-06-27 13:23:09 UTC
I have a video on my site and I want to redirect them after the video is over, and 3 minutes and 52 seconds is the time of the video... could you please give me the code I need
Yes, you can use a meta tag (which is much easier!)
but, I will show you the wonders of javascript.
Please note that the following are examples I typed up and are somewhat inefficient & long methods of employing redirection.
Simplest Technique :
"setTimeout('Redirect()',
237000)">
A bit less simple, where you load the total playback time of the video from a saved xml file. So rather than searching through your html just look for the video tag in your xml file (easier to search and change later).
David P
2010-06-27 20:24:42 UTC
You don't need javascript for this, you can use the html refesh command
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.