collapsecollapse*
*Contents  *Index  *Topic Contents
*Previous Topic: close
*Next Topic: compareEndPoints

collapse

Description

Moves the insertion point to the beginning or the end of the current range.

Syntax

object.collapse([start])

ParameterDescription
start Optional. (Boolean) False moves the insertion point to the end of the text range. True (default) moves the insertion point to the beginning of the text range.

Return Value

No return value.

Remarks

This feature might not be available on non-Win32® platforms. See article Q172976 in the Microsoft® Knowledge Base for the latest information on Internet Explorer cross-platform compatibility.

Applies To

TextRange

See Also

expand


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.