JQuery Call Función cada segundo
setInterval(function(){
//this code runs every second
}, 1000);
Grepper
setInterval(function(){
//this code runs every second
}, 1000);
setInterval(function(){
//this code runs every second
}, 1000);
var time = 1;
var interval = setInterval(function() {
if (time <= 3) {
alert(time);
time++;
}
else {
clearInterval(interval);
}
}, 5000);