Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 290
  • Last Modified:

Getting JavaScript to pause for 4 milliseconds

I need to try and block the timeout message box from appearing on the ecreen while my lengthy java script executes. I have heard there is a function such as SetTimeOut(), that lets me force it to pause a few milliseconds, thereby resetting the clock so the box wil not appear.

Please confirm this and provide me the syntax for this. I hear the first param is the function to call and the second it the number of ms to sleep.  

True?

What does the function need to do? Could it be empty?

Thanks.

0
newbieweb
Asked:
newbieweb
1 Solution
 
Dave BaldwinFixer of ProblemsCommented:
0
 
newbiewebAuthor Commented:
Thanks!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now