Javascript Reference
Categories: selection

javascript selection isCollapsed

@March 15, 2008, 1:22 a.m.
isCollapsedFirefox/Netscape/NN 6 IE n/a Chrome/Safari/DOM n/a  

Read-only  

Returns Boolean true if the anchor and focus boundaries of a selection are identical.

 
Example
 
if (selectionRef.isCollapsed) {
    // selection is an insertion point
}
 
Value

Boolean value: true | false.

 
Default

true


Powered by Linode.