Mega Code Archive

 
Categories / JavaScript Reference / Javascript Methods
 

CompareEndPoints() Syntax, Parameters and Note

Note: Compares the position of the start and/or end points of two text ranges.  Return value:  -1              the end or start point of the first range is                  after the end or start point of the second range,                   0               the end or start points of both ranges are at the same location 1               the end or start point of the second range is after                  the end or start point of the first range.      Syntax:      textRangeName.compareEndPoints(param1, param2) Parameters:     param1   Required; the type of comparison: StartToEnd, StartToStart, EndToStart, or EndToEnd.     param2   Required; the second text range.