javascript document forms[ ]

forms[ ] NN 2 IE 3 DOM 1

Read-only

Returns an array of all form objects (form elements) in the current document. Items in this array are indexed (zero-based) in source code order, but may also be accessed by using the form's name as a string index value.

 
Example
 
var elemCount = document.forms[0].elements.length;
 
Value

Array of form objects.

 
Default

Array of zero length.


552,Nickname,Homepage or email,Comments here,Add comment