Last active
February 15, 2016 18:57
-
-
Save justin-unbounce/9f6bb17a4cb0ae0c27e5 to your computer and use it in GitHub Desktop.
Redirect on Timer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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