Created
June 15, 2011 09:57
-
-
Save thechrisoshow/1026820 to your computer and use it in GitHub Desktop.
Auto refresh the page
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
| // Ok, document.ready is jQuery - but you get the gist | |
| $(document).ready(function() { | |
| setTimeout(function() { | |
| location.href = location.href; | |
| }, 10000); | |
| // 10000 == 10 seconds | |
| // Change this if you want a different refresh period | |
| }); |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No probs - thanks for pointing it out anyhoo!