Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

BBS: Re: inserting a pause in a script - September 01, 1998 at 12:13:39

You are here: irt.org | BBS | Re: inserting a pause in a script [This BBS is closed]

Posted by Martin Webb on September 01, 1998 at 12:13:39:

In Reply to: Re: inserting a pause in a script posted by Jason Nugent on August 28, 1998 at 06:06:17:

There in't a pause method in JavaScript.

The setTimeout function sets a timer running, but then allows the code to continue. When the timer runs out the 1st argument is evaluated.

To simulate a pause you'll have to put a loop into your code - a big loop that does nothing.

Warning - if its to big it'll either choke the browser, or be interrupted by the browser after so many thousand instructions.

Follow-ups:

You are here: irt.org | BBS | Re: inserting a pause in a script [This BBS is closed]

©2018 Martin Webb