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 backup and download Database using PHP

< ?php $mysqlUserName = 'databaseusername' ; $mysqlPassword = 'databasepassword' ; $mysqlHostNa...