Solved

Getting JavaScript to pause for 4 milliseconds

Posted on 2011-09-27
2
275 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 82

Accepted Solution

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

Author Closing Comment

by:newbieweb
ID: 36714016
Thanks!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

747 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now