ZVON > References > DOM2 Reference

collapse (method )

Owning interface and usage:  
Range.collapse(toStart)

Member of these other interfaces:  
none

Description:  
Collapse a Range onto one of its boundary-points.

Parameters:  
Boolean toStart  -  If true, collapses the Range onto its start; if false, collapses it onto its end.

Returns:  
nothing

Exceptions:  
DOMException INVALID_STATE_ERR
Raised if detach() has already been invoked on this object.