For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages
are available by appending .md to any URL.
Interface HTMLFormControlsCollection
interface HTMLFormControlsCollection {
length: number;
"[iterator]"(): ArrayIterator<Element>;
item(index: number): Element | null;
namedItem(name: string): Element | RadioNodeList | null;
[index: number]: Element;
}
length: number;
"[iterator]"(): ArrayIterator<Element>;
item(index: number): Element | null;
namedItem(name: string): Element | RadioNodeList | null;
[index: number]: Element;
}
Hierarchy (View Summary)
- HTMLCollectionBase
- HTMLFormControlsCollection
Indexable
Properties
Readonlylength
length: number
The HTMLCollection.length property returns the number of items in a HTMLCollection.
Methods
[iterator]
-
Returns ArrayIterator<Element>
item
-
The HTMLCollection method
item()returns the element located at the specified offset into the collection.Parameters
- index: number
Returns Element | null
namedItem
-
The
HTMLFormControlsCollection.namedItem()method returns the RadioNodeList or the Element in the collection whose name or id match the specified name, or null if no node matches.Parameters
- name: string
Returns Element | RadioNodeList | null
The
HTMLFormControlsCollectioninterface represents a collection of HTML form control elements, returned by the HTMLFormElement interface's elements property.MDN Reference