TOC PREV NEXT INDEX

Put your logo here!


length


length returns the number of controls in the FORM element.

Syntax

num = form.elements 

Parameters

num is an integer.

Example

if (document.getElementById("form1").length > 1) { 
  // more than one form control here 
} 

Notes

None.

Specification

length


mozilla DOM project | mailto:oeschger | bug 93108
TOC PREV NEXT INDEX