Skip to content

Instantly share code, notes, and snippets.

@justin-unbounce
Last active February 15, 2016 18:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justin-unbounce/9f6bb17a4cb0ae0c27e5 to your computer and use it in GitHub Desktop.
Save justin-unbounce/9f6bb17a4cb0ae0c27e5 to your computer and use it in GitHub Desktop.
Redirect on Timer
<script>
(function(){
// Your URL
var url = 'http://go.yoursite.com/page-name/';
// Delay before the redirect takes place, in seconds
var delay = 1;
window.setTimeout(function() {
window.open(url, '_parent');
}, delay * 1000);
})();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment