How to call a function 10 times like
for(x=0; x<10; x++) callfunction();
but with 1 sec between each call?
setInterval(function(){},1000);
Calls the function for every second...
You can also use setTimeout for your thing to work.