JavaScript – DOM Attributes Item() Method
The attributes item() method returns an attribute, by index, from a NamedNodeMap.
The attributes item() method returns an attribute, by index, from a NamedNodeMap.
The attributes.length property returns the number of nodes in a NamedNodeMap.
The Attributes name property returns the name of an attribute.
The attributes removeNamedItem() method removes a node, by name, in a NamedNodeMap.
The attributes rsetNamedItem() method adds an attribute node to a NamedNodeMap. If the attribute node already exists, it will be replaced.
The Attributes specified property returns true if an attribute is specified. Otherwise it returns an error.
The Attributes value property returns the value of an attribute.
The collection item() method returns the element at a specified index in an HTMLCollection, which is an array-like list of HTML elements.
The Collection length property returns the number of elements in an HTMLCollection, which is an array-like list of HTML elements.
The collection namedItem() method returns a named element from an HTMLCollection, which is an array-like list of HTML elements.
The document.activeElement property returns the HTML element that has focus.
The document.addEventListener() method attaches an event handler to a document.
The document.adoptNode() method adopts a node from another document.
The document.baseURI property returns the base URI of the document.
The document.body property returns the document’s <body> element.
The document.characterSet property returns the character encoding for the document.
The document.close() method closes a document previously opened with the open() method.
The document.cookie property returns a semicolon-separated list of key=value pairs (document cookies).
The document.createAttribute() method creates an attribute and returns the attribute as an Attr object.
The document.createComment() method creates a comment and returns the comment node.