Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

function countDown() 21 SEC

var seconds = document.getElementById("countdown").textContent;
var countdown = setInterval(function() {
    seconds--;
    document.getElementById("countdown").textContent = seconds;
    if (seconds <= 0) clearInterval(countdown);
}, 1000);
Source by tonnygaric.com #
 
PREVIOUS NEXT
Tagged: #function #SEC
ADD COMMENT
Topic
Name
6+2 =