How to set delay time in JavaScript
In this article you will get the knowledge of how to execute a code after a specified amount of time.
The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: How to set delay time in JavaScript


Binod SumanPosted Jul 1, 2009, 6:43 AM EDT
Very nice tutorial. But there is one more way to put the delay in javascript function using false looping. Check this below code function pauseJS(timeInMilliS) { var date = new Date(); var curDate = null; do { curDate = new Date(); } while(curDate-date < timeInMilliS); } source: http://binodservlet.blogspot.com/2009/06/how-to-set-wait-in-javascript.html Thanks, Binod Suman http://binodsuman.blogspot.com