What must I do to have a function on a website that claims to reroute you to the site in 3 seconds or less?
Asked by codedude
<meta http-equiv="refresh" content="3;url=http://www.google.com/" />
Answered by Darin Dimitrov
Most likely, you’re seeking for the meta refresh tag:
<html> <head> <meta http-equiv="refresh" content="3;url=http://www.somewhere.com/" /> </head> <body> <h1>Redirecting in 3 seconds...</h1> </body> </html>
Answered by LukeH
Here’s how to use setTimeout in a very basic way ()
Answered by mbrevoort
Here’s a thorough (yet simple) example of refreshing a counter div while redirecting after X seconds:
The counter div’s initial content is the number of seconds to wait.
Answered by noamtm
The simplest method is to use the HTML META element, which looks like this:
<meta http-equiv="refresh" content="3;url=http://example.com/" />
Answered by Ehsan
Post is based on https://stackoverflow.com/questions/3292038/redirect-website-after-specified-amount-of-time