forms | NN 2 IE 3 DOM n/a | |||
A collection of all form objects in the document. |
||||
Object Model Reference | ||||
document.forms |
||||
Object-Specific Properties | ||||
|
||||
Object-Specific Methods | ||||
|
||||
Object-Specific Event Handler Properties | ||||
None. |
length | NN 2 IE 3 DOM 1 |
Read-only | |
Returns the number of elements in the collection. |
|
Example | |
var howMany = document.forms.length; |
|
Value | |
Integer. |
item( ) | NN 6 IE 4 DOM 1 |
item(index[, subindex]) item(index) | |
Returns a single object or collection of objects corresponding to the element matching the index value (or, optionally in IE/Windows, the index and subindex values). |
|
Parameters | |
|
|
Returned Value | |
One object or collection (array) of objects. If there are no matches to the parameters, the returned value is null. |
namedItem( ) | NN 6 IE 6 DOM 1 |
namedItem(IDOrName) | |
Returns a single object (in Netscape 6) or collection of objects corresponding to the element matching the parameter string value. |
|
Parameters | |
|
|
Returned Value | |
One object (in Netscape 6) or collection (array) of objects. If there are no matches to the parameters, the returned value is null. |
urns( ) | NN n/a IE 5(Win) DOM n/a |
urns(URN) | |
Returns a collection of nested element objects that have behaviors attached to them and URNs that match the URN parameter. |
|
Parameters | |
|
|
Returned Value | |
A collection (array) of objects. If there are no matches to the parameters, the returned value is an array of zero length. |