Quick References
ADO
ASP
CSS2
HTML
JavaScript
Jet SQL
VBScript
WML
WMLScript
WSH
XHTML
XML DOM
XSLT
Features
Knowledge Base
Tutorials
Partners
ZVON.ORG
XML
Planet Source Code
VisualBuilder
Web Design
Your HTML Source
XML/XSLT Forums
ASPAlliance
Scripts
Programmers Heaven
Tek-Tips Forums
Developer Fusion
Code Project
WScript Object
Method: WScript.Sleep
WScript.
Sleep
lngTime
The
Sleep
method causes execution of the current script to be suspended for the specified number of milliseconds.
The use of the
Sleep
method is demonstrated in the following JScript code.
Code:
for (i=1; i<=5; i++)
{
WScript.Sleep(1000)
WScript.Echo("I started",i,"second(s) ago.")
}
WScript.Echo("Now I'm done.")
Output:
I started 1 second(s) ago.
I started 2 second(s) ago.
I started 3 second(s) ago.
I started 4 second(s) ago.
I started 5 second(s) ago.
Now I'm done.
Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information