JavaScript DHTML/Node Operation/getAttributeNode
"getAttributeNode()" Example
<source lang="html4strict">
<html> <body> <script language="JavaScript"> function function1(){
var m = document.getElementById("myDiv").getAttributeNode("id"); var n = m.value; alert(n);
} </script>
This is a div element
<input type="button" value="Get id attribute node value" onclick="function1();"> </body> </html>
</source>