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