How to call a function 10 times like
for(x=0; x<10; x++) callfunction();
but with 1 sec between each call?
Another solution
for(var x=0; x<10; x++) window.setTimeout(callfunction, 1000 * x);