Question:
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
Three answers:
Germann A
2010-06-27 13:25:53 UTC
See META Refresh

http://www.google.co.uk/search?q=meta+refresh&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
devils i
2010-06-27 21:46:18 UTC
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.
Loading...