TextRange.duplicate() (Method)

Duplicate a TextRange object.

Availability:

JScript - 3.0
Internet Explorer - 4.0
Property/method value type:TextRange object
JavaScript syntax:IEmyTextRange.duplicate()

This is a deep copy of a TextRange object. Simply assigning the value of one variable copies only the reference to the same object. You need to call this method to create a new object whose properties are set to the same values as its parent.