Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q299 When referring to my form using form.field.value it does not work, why?

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

Feedback on 'Q299 When referring to my form using form.field.value it does not work, why?'

©2018 Martin Webb