I have a code with me for decrementing a timer with count equal to 6
but I want to decrement the value of count with format hrs:min:sec
like this 00:00:10
function countdown() {
// starts countdown
if (count == 0) {
// time is up
} else {
count--;
t = setTimeout("countdown()", 1000);
}
};
where count will be 00:00:10 for 10 sec. How to decrement the timer ? Can anyone help me on this ?