Return the value of the onclick attribute of a button element:
The result could be:
The getNamedItem() method returns the node with the specified name in a namedNodeMap, as a Node object.
Read more about the Node object in our Node object reference.
The getNamedItem() method is supported in all major browsers.
Note: Internet Explorer 8 and earlier does not support this method.
|nodename||String||Required. The name of the node in the namedNodeMap you want to return|
|Node object||The node with the specified name|
|DOM Version||Core Level 1|
Your message has been sent to W3Schools.