JavaScript DHTML/Node Operation/removeAttributeNode
"removeAttributeNode()" Example
<source lang="html4strict">
<html> <body> <script language="JavaScript"> function function1(){
var m = document.getElementById("myDiv").getAttributeNode("id"); alert("The value of the attributeNode is: "+"""+m.value+"""); var n = document.all.myDiv.removeAttributeNode(m); alert("The attribute node has been removed");
} </script>
This is a div element
This is another div element
<input type="button" value="Get id attribute node value" onclick="function1();"> </body> </html>
</source>