Javascript Reference
Categories: TextRange

javascript TextRange moveToPoint( )

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

moveToPoint(x, y)

  

Collapses the text range to an insertion pointer and sets its location to the spot indicated by the horizontal and vertical coordinates in the browser window or frame. This is as if the user had clicked on a spot in the window to define an insertion point. Use methods such as expand( ) to enlarge the text range to include a character, word, sentence, or entire text range.

 
Parameters
 
  • Horizontal coordinate of the insertion point in pixels relative to the left edge of the window or frame.
  • Vertical coordinate of the insertion point in pixels relative to the top edge of the window or frame.
 
Returned Value

None.


Powered by Linode.