Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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

irt.org | Knowledge Base | JavaScript | Form 3.1 | Q299 [ previous next ]

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

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?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.