eSnippets.net, a code gallery for creating, saving and sharing all kinds of code snippets.

Snippets Tagged "timer" 1 result found

Redirect with a Timer Javascript 1074
Author: Rene Posted On: Saturday, April 25, 2015

You can use JavaScript window.location to redirect a visitor to a required page. You may have seen this feature used by sites with full page ads, or to redirect visitors to the site's new domain name. You can also add a timer to the script that will allow the page to redirect automatically after x seconds.