The elements.length property specifies the number of items in the elements array.Each item in the array refers to an object in the HTML form. Using the elements.length property of the Form object Dummy text box: Click on the button to get the number of elements in this form.