Created
June 3, 2013 22:16
-
-
Save supercleanse/5701956 to your computer and use it in GitHub Desktop.
Placing this script on the page will wait {delay_seconds} after the page is loaded and then will redirect to {redirect_url} ...
This file contains hidden or 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 type="text/javascript"> | |
| $(document).ready(function() { | |
| var redirect_url = 'http://example.com/cool'; | |
| var delay_seconds = 3; | |
| setTimeout( function() { | |
| window.location=redirect_url; | |
| }, (delay_seconds * 1000) ); | |
| }); | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment