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
- Understanding basic arrays and loops
- Variable and expression shortcuts
- The switch statement of JavaScript1.2
- JavaScript and OOP
- Creating custom objects in JavaScript
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) Example: with (document.form1){ In the above example, the object "document.form1" is cached, so "field1" actually refers to "document.form1.field1". |
Conditional Statements
Looping Statements
Reference List
- JavaScript Operators
- JavaScript Statements
- Global functions
- Escape Sequences
- Reserved Words
- Ajax (XMLHttpRequest)
- Anchor
- Applet
- Area
- Array
- Boolean
- Date
- Document
- Event
- Form
- Reset
- Frame
- Function
- History
- Image
- Link
- Location
- Math
- Navigator
- Number
- Object
- RegExp
- Screen
- String
- Style
- window
Partners
Right column
