Categories:

JavaScript Kit > JavaScript Reference > Here

JavaScript Statements

Last updated: September 30th, 2004

JavaScript Statements enable you to implement logic, looping, and more within your script.

Related Tutorials

JavaScript Statements

Statements Description
with "with" is a time saving statement that allows you to "cache" an object, so for statements that follow, you no longer need to reference the object again when referring to it.

Syntax:

with (object)
statement

Example:

with (document.form1){
field1.value="test"
field2.value="test2"
}

In the above example, the object "document.form1" is cached, so "field1" actually refers to "document.form1.field1".

Conditional Statements

Looping Statements


Reference List

Partners
Right column

CopyRight © 1998-2008 JavaScript Kit. NO PART may be reproduced without author's permission.