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
length returns the number of controls in the FORM element.
num = form.elements
num is an integer.
if (document.getElementById("form1").length > 1) { // more than one form control here }
None.
length