'namedItem()' Example : namedItem : Node Operation JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Node Operation » namedItem »

 

'namedItem()' Example



    
<html>
<body>
<script language="JavaScript">
function function1() {
    document.all.namedItem("myDiv1").innerText = "Named Item"

</script>
<div id="myDiv1" style="width:600; height:200; background-color:blue;">
Click button to change me
</div>
<button onclick="function1();">Named item</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
» namedItem