'getAttributeNode()' Example : getAttributeNode : Javascript Methods : JavaScript Reference examples (example source code) Organized by topic

JavaScript Reference
C++
PHP


JavaScript Reference  »  Javascript Methods   » [  getAttributeNode  ]   
 



'getAttributeNode()' Example

    
<html>
<body>
<script language="JavaScript">
function function1(){
    var m = document.getElementById("myDiv").getAttributeNode("id");
    var n = m.value;
    alert(n)

</script>
<div id="myDiv">This is a div element</div>
<input type="button" value="Get id attribute node value" onclick="function1();">
</body>
</html>

    
      
      
Related examples in the same category
1.  'getAttributeNode()' Syntax, Parameters and Note
2.  'getAttributeNode()' is applied to
























Home| Contact Us
Copyright 2003 - 07 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.