HTML DOM Document forms
HTML DOM Document forms Property
The forms property is used to return the collection of all form elements in a document. It is a read-only property and returns HTMLCollection.
Syntax:-
Its syntax is:- document.forms
Return:-
Its return is:- a collection of all embedded elements in the document
Further Explanation:-
Method | Description |
[index] | Returns element with the specified index. |
item(index) | Returns element with the specified index. |
namedItem(id) | Returns element with the specified id. |
Properties are:-
Property | Description |
length | The number of form elements in a collection. |