Line of inheritance:
HTMLCollection/~
HTMLCollection/~
Stub
This article is a stub. Please help the wiki by coding it. Spamming and vandalism is not considered an improvement and will result in discipline, up to, and including a permanent block.
An HTMLCollection is an array-like object which lists HTML elements according to their name and id attributes and their order of occurrence in the document.
Properties
length
| Data type | number |
|---|---|
| Standard | DOM Level 1 HTML, DOM Level 2 HTML |
| Documentation | none |
Methods
item
| Data type | function |
|---|---|
| Return type | Node |
| Parameter list | index (number) |
| Standard | DOM Level 1 HTML, DOM Level 2 HTML |
| Documentation | Microsoft (IE8) |
namedItem
| Data type | function |
|---|---|
| Return type | Node |
| Parameter list | name (string) |
| Standard | DOM Level 1 HTML, DOM Level 2 HTML |
| Documentation | Microsoft (IE8) |
See also
- NodeList, a similar DOM type