collapsed
Returns a boolean indicating whether a range is collapsed.
Syntax
Parameters
isCollapsed is boolean with values of true or false
Example
range = document.createRange(); range.setStart(startNode,startOffset); range.setEnd(endNode,endOffset); isCollapsed = range.collapsed;
Notes
Returns a boolean of true if the start and end boundary points of the Range are the same point in the DOM, false if not.
A collapsed Range is empty, containing no content, specifying a single-point in a DOM tree. The collapsed property is read-only. To collapse a range, see the collapse method
Specification:
Netscape Communications http://developer.netscape.com |