July 1998
Intermediate to advanced
1456 pages
65h 5m
English
with — NN 2 IE J1 ECMA 1
The with statement adds an object to the scope of
every statement nested within. This can shorten the code of some
statement groups that rely on a particular object reference.
with (objectRef) {
statements
}with (document.forms[0]) {
name1 = firstName.value
name2 = lastName.value
mail = eMail.value
}
Read now
Unlock full access