How to call a function 10 times like
for(x=0; x<10; x++) callfunction();
but with 1 sec between each call?
You can try to use setInterval and use a variable to count up to 10. Try this:
setInterval
var number = 1; function oneSecond () { if(number <= 10) { // execute code here.. number++; } };
Now use the setInterval:
setInterval(oneSecond, 1000);