If the time the script should wait are predefined you can use
setTimeout('yourFuntion()',timeinmilliseconds)
/Peter
----- Original Message -----
From: "Aglaea webmaster" <webmaster@a...>
To: "JavaScript HowTo" <javascript_howto@p...>
Sent: Thursday, April 11, 2002 9:17 AM
Subject: [javascript_howto] Pause or wait
> Hi there,
>
> A collegue of mine is looking for a command to have a pause in a
> client site JavaScript, like wait under UNIX. Does anybody know how
> to do this? He doesn't want to use a loop (not only because it is too
> inaccurate in the time of the wait).
>
> Greetz,
> Marc
>
>
> ---
>
> Improve your web design skills with these new books from Glasshaus.
>
> Usable Web Menus
> http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
> r-20
> Constructing Accessible Web Sites
> http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> r-20
> Practical JavaScript for the Usable Web
> http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> r-20
>
>