javascript TextRange collapse( )

collapse( )NN n/a IE 4(Win) 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.


2101,Nickname,Homepage or email,Comments here,Add comment