Delay following link in jQuery

Because I want to display a short animation when a user clicks a link, I want to make sure that the animation is complete before redirecting. To do so, I thought I could set a simple time out to …

Loop inside a loop

Alright, so i need to run a timeout inside of a loop without recalling the loop all over again. The inner loop NEEDS to be a timeout. (function loaded() { for(var i=0;i<100; i++){ if(!...