You are here: irt.org | FAQ | JavaScript | Form | 3.1 | Q299 [ previous next ]
By default most objects are owned by the window, so:
form.field.value
is the same as saying:
window.form.field.value
However in this instance the form is not owned by the window but by the document, therefore you need to say:
document.form.field.value