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


JAVASCRIPT DHTML TUTORIALS » Node Operation » duplicate »

 

'duplicate()' Example



    
<html>
<body>
<script language="JavaScript">
function function1() {
    var myText = myButton.createTextRange();
    alert(myText.duplicate().text)

</script>
<button id="myButton" onclick="function1();">Click this button</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
» duplicate