'getNamedItem()' Example : getNamedItem « Javascript Methods « JavaScript Reference





'getNamedItem()' Example

    
<html>
<body>
<button onclick="alert(this.attributes.getNamedItem('onclick').value);">
Get named item</button>
</body>
</html>

    
      
      










Related examples in the same category

1.'getNamedItem()' Syntax, Parameters and Note
2.'getNamedItem()' is applied to