collapse()

This method is used to reduce a textRange object to a length of 0, creating an insertion point at the beginning or the end of the textRange before it was collapsed. The default value for the start parameter is TRUE, this meaning that the textRange will collapse to the beginning of the textRange. A parameter value of FALSE will cause the textRange to collpase to its end point.

syntax:

collapse( [TRUE or FALSE] )

This method is used with the following:

textRange