inRange()

This method is used to determine whether or not the compared text range is within or physically equal to the current textRange.

syntax:

example

This method is used with the following:

textRange