This documentation is archived and is not being maintained.
collapsed property
Retrieves whether a range is collapsed or empty.
Syntax
| JavaScript | p = object.collapsed |
Property values
Type: Boolean
false (false)
-
Default. The range is not collapsed.
true (true)
-
The range is collapsed.
Standards information
Remarks
A collapsed range has its start and end boundary points set to the same value, rendering it empty.
See also
-
Range
-
collapse