Javascript Reference
Categories: TextRange

javascript TextRange collapse( )

@March 15, 2008, 1:22 a.m.
collapse( )Firefox/Netscape/NN n/a IE 4(Win) Chrome/Safari/DOM n/a  

collapse([start])

  

Reduces the TextRange object to a length of zero (creating an insertion point) at the beginning or end of the text range before it collapsed.

 
Parameters
 
  • Optional Boolean value that controls whether the insertion point goes to the beginning (true) of the original range or the end (false). The default value is true.
 
Returned Value

None.


Powered by Linode.