Solved

Getting JavaScript to pause for 4 milliseconds

Posted on 2011-09-27
2
277 Views
Last Modified: 2012-05-12
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
Comment
Question by:newbieweb
2 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 36714010
0
 

Author Closing Comment

by:newbieweb
ID: 36714016
Thanks!
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ROBOFTP UNZIP 1 43
exchange ,script 10 43
alert(innerHTML); 8 15
Html form and modal / img src -problem 3 6
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question