Name

NamedNodeMap.getNamedItem( ) — look up a node by name

Availability

DOM Level 1 Core

Synopsis

Node getNamedItem(String name);

Arguments

name

The value of the nodeName property of the node to look up.

Returns

The named node, or null if no node with that name was found.

Get JavaScript: The Definitive Guide, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.