Name

length — NN 2 IE 3 DOM n/a

Synopsis

Read-only

The number of form elements in the form.

Example

for (var i = 0; i < document.forms[0].length; i++) 
    ...
}

Value

Integer.

Default

None.

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.