collapsed property

Retrieves whether a range is collapsed or empty.

Document Object Model (DOM) Level 2 Traversal and Range Specification, Section 2.13Internet Explorer 9

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

 

 

Show:
© 2014 Microsoft