Jesdisciple (talk | contribs) m (6 revisions: somewhat more relevant to HTML than to JS) |
(Adding categories) Tag: categoryselect |
||
Line 32: | Line 32: | ||
[[Category:HTML DOM types]] |
[[Category:HTML DOM types]] |
||
+ | [[Category:JavaScript]] |
||
+ | [[Category:DOM types]] |
||
+ | [[Category:DOM]] |
Latest revision as of 21:56, 7 April 2017
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