TextRange.isEqual() (Method)

Tests two text ranges for equality.

Availability:

JScript - 3.0
Internet Explorer - 4.0
Property/method value type:Boolean primitive
JavaScript syntax:IEmyTextRange.isEqual(aTextRange)
Argument list:aTextRangeAnother TextRange to compare against

Given that you have two distinctly separate TextRange objects, you can test whether they are both equivalent to one another by passing one as an argument to this method being called on the other. You may accomplish the same thing less conveniently with the compareEndPoints() method.

See also:TextRange.compareEndPoints()