HTML DOM Attributes item()
HTML DOM Attributes item() Method
The item() method is used to return attributes by their index numbers from a NamedNodeMap. They are sorted according to their appearance in the source code which starts at 0.
Syntax:-
Its syntax is:- namednodemap[index] OR namednodemap.item(index)
Return:-
Its return is:- attribute node at specific index
Further Explanation:-
Parameter | Description |
index | Required. The index of attribute node in NamedNodeMap. |