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


JAVASCRIPT DHTML TUTORIALS » Node Operation » cloneNode »

 

'cloneNode()' Example



    
<html>
<body>
<script language="JavaScript">
function function1(){
    var myNode = myButton.cloneNode(true);
    alert(myNode.innerHTML)

</script>
<button id="myButton" onclick="function1();">Clone node</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
» cloneNode