namedItem

namedItem returns the first element with ID or name from the collection.

Syntax

element = collection.namedItem(name)
element = collection[name]

Examples

1

2

Internal

item

length

External

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu