Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Code:
- <script type="text/javascript">
- function countdown() {
- var counter = document.getElementById('yourID'); //replace with your ID
- if (parseInt(counter.innerHTML)==1) {
- location.href = 'index.php';
- }
- counter.innerHTML = parseInt(counter.innerHTML)-1;
- }
- setInterval(function(){ countdown(); },1000);
- </script>
- Use:
- <font id="yourID">10</font>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement