Javascript Reference
Categories: TextRange

javascript TextRange move( )

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

move("unit"[, count])

  

Collapses the current text range to an insertion point at the end of the current range and moves it forward or backward from the current position by one or more units.

 
Parameters
 
  • A case-insensitive string value of the desired unit: character | word | sentence | textedit. The textedit value moves the insertion pointer to the start or end of the entire original range.
  • An optional integer of the number of units to move the insertion pointer. Positive values move the pointer forward; negative values move the pointer backward. Default value is 1.
 
Returned Value

Integer of the number of units moved.


Powered by Linode.