'data' Example : data 2 : Node Operation JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Node Operation » data 2 »

 

'data' Example



    
<html>
<body>
<script language="javascript">
function function1(){
    var myText = document.createTextNode();
    myText.data="Data Property for textNode";
    alert(myText.data);
}
</script>
<button onclick="function1();">View Node Value</button>
</body>
</html>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Node Operation
» data 2