javascript call function every second
snippet in javascript

javascript call function every second

user611

setInterval(function(){ 
    //this code runs every second 
}, 1000);