Availability: |
| |||||
Inherits from: | Collection object | |||||
JavaScript syntax: | - | myInputArray = myDocument.aFormName.anElementName | ||||
IE | myInputArray = myDocument.all[aName] | |||||
- | myInputArray = myDocument.forms[aFormIndex].anElementName | |||||
- | myInputArray = myDocument.getElementsByName(aName) | |||||
- | myInputArray = myDocument.getElementsByTagName("INPUT") | |||||
Argument list: | aName | An associative array reference | ||||
aFormIndex | A reference to a particular form in the forms collection | |||||
anIndex | A valid reference to an item in the collection | |||||
Object properties: | length |
You may encounter this if you have several Input objects with the same name. It is better to make sure they have unique names.
In Netscape, this array is of the type InputArray. However, in MSIE it is an object of type Collection. Be careful if your code depends on testing object types because you may find it breaks when used across the two browsers.
See also: | Input object |
Prev | Home | Next |
Input-output | Up | INS object |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |