Name

collapse( ) — NN n/a IE 4 DOM n/a

Synopsis

collapse([start])

Reduces the TextRange object to a length of zero (creating an insertion point) at the beginning or end of the text range before it collapsed.

Returned Value

None.

Parameters

start

Optional Boolean value controls whether the insertion point goes to the beginning (true) of the original range or the end (false). The default value is true.

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.