Name

moveToPoint( ) — NN n/a IE 4 DOM n/a

Synopsis

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.

Returned Value

None.

Parameters

x

Horizontal coordinate of the insertion point in pixels relative to the left edge of the window or frame.

y

Vertical coordinate of the insertion point in pixels relative to the top edge of the window or frame.

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.