javascript Range collapse( )
@March 15, 2008, 1:22 a.m.
collapse( ) | Firefox/Netscape/NN 6 IE n/a Chrome/Safari/DOM 2 |
collapse(toStartFlag) | |
Shrinks the current range to an insertion point (start and end points are in the same node at the same offset). The Boolean parameter controls whether the range collapses to the start point (true) or end point (false) of the current range. A script working its way through a document (e.g., using the String.indexOf( ) method to search for the next instance of a string) usually collapses to the end point before shifting the end point to the end of the body to perform the next String.indexOf( ) search. |
|
Parameters | |
|
|
Returned Value | |
None. |
Permanent URL:
http://javascript.gakaa.com/range-collapse-4-0-5-.aspx
Powered by Linode.