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  



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.

  • 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


Powered by Linode.