Skip to content Skip to sidebar Skip to footer

Make The Clock Decrement

Hey guys am trying to get an expected download time with an ajax script..It just works fine ..I get the expected time in the format hh:mm:ss.But the clock isnt moving The code i ha

Solution 1:

You may try setInterval instead of setTimeout :

setInterval(function() {
   var c = time.getHours() + ":" + time.getMinutes() + ":" +
        time.getSeconds();
   console.log(c);
}, 500);

Edit : I updated the code above

Post a Comment for "Make The Clock Decrement"