Friday, February 15, 2013

Jquery simple seconds timer


<script>
var counter = 10;
    setInterval(function() {
        counter--;
     
            document.getElementById("count").innerHTML = 'The page will be refresh after '+counter;
if(counter == 0)
{
             counter=10;
}
    }, 1000);
</script>
<div id="count"></div>

No comments:

Post a Comment

Please Comment Here!

How to change the PHP version for subfolders or subdomains

  How to change the PHP version for subfolders or subdomains Setting a specific PHP version for a specific websites, subfolders or subdomain...