'data' Example : data 2 « Node Operation « JavaScript DHTML






'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>

    
      
      








Related examples in the same category