Javascript Reference
Categories: Range

javascript Range collapsed

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

Read-only  

Returns Boolean true if the range's start and end points are at the same location, encompassing zero characters. A collapsed range can be located anywhere within the document.

 
Example
 
if (rng.collapsed) {
    // act on collapsed text range
}
 
Value

Boolean value: true | false.

 
Default

None.


Powered by Linode.