Web Analytics Made Easy -
StatCounter Program/code pause? - CodingForum

Announcement

Collapse
No announcement yet.

Program/code pause?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Program/code pause?

    Is there any way to build a pause in the execution of the code?

    I need the program to wait for a specific time and then continue from where it was. Is this possible?

  • #2
    You need the setTimeout() and/or setInterval() method of the window object.

    See for example:-

    http://www.codingforum.net/showthread.php?t=95823

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

    Comment


    • #3
      Great thanks!

      Comment

      Working...
      X