duplicate()

This method is used to create a new textRange object which will have the same values as the original.

syntax:

duplicate()

This method is used with the following:

textRange