-1

How can i stop runing code?

For example when run 5 lines code. stop 3 second and then its continue. on jquery

  • 1
    Google `setTimeout`, it's asynchronous, although that's how your code should be. – davin Oct 24 '11 at 11:09
  • possible duplicate of [jQuery and setTimeout](http://stackoverflow.com/questions/7085925/jquery-and-settimeout) – nfechner Oct 24 '11 at 11:11
  • Possible duplicate: http://stackoverflow.com/questions/951021/javascript-sleep –  Oct 24 '11 at 11:12

1 Answers1

0
setTimeout(function(){
   //code paused
}, 3000);

3000 = 3000 milliseconds = 3 seconds.

Curtis
  • 101,612
  • 66
  • 270
  • 352