cloneRange method (Range)
Returns an exact copy of the current Range object.
Note: The Range object and its cloneRange method are supported in Internet Explorer from version 9.In Internet Explorer before version 9 (and in newer ones as well), the duplicate method of the TextRange object provides similar functionality.
You can find the related objects in the Supported by objects section below.
Returns the newly created Range object.
Example HTML code 1:
This example illustrates the use of the cloneRange method:
Did you find this example helpful?
User Contributed Comments