Fandom

HTML & CSS Wiki

HTMLCollection

649pages on
this wiki
Add New Page
Comments0 Share
Line of inheritance:
Object ⇒ HTMLCollection

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

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.