JavaScript Reference/Javascript Methods/duplicate
"duplicate()" Example
<source lang="javascript">
<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>
</source>
"duplicate()" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |TextRange | +----------------+--------------------------------------------------------------+
</source>
"duplicate()" Syntax, Parameters and Note
<source lang="javascript">
Note: Creates a duplicate of the specified TextRange object.
Syntax:
textRangeName.duplicate()
</source>