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
All Statements
STATEMENT: while
while
The
while
statement creates a loop consisting of a block of statements that is executed if the expression evaluated is true.
The following example simply counts 1 thru 10 by incrementing a counter by 1 each time for as long as the counter is less than 11:
Code:
var i = 0;
while(i<11)
{
document.write(i + "<BR>");
i++;
}
Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information