Name

Window.moveTo( ) — move a window to an absolute position

Availability

JavaScript 1.2

Synopsis

                  window.moveTo(x, y)

Arguments

x

The X-coordinate of the new window position.

y

The Y-coordinate of the new window position.

Description

moveTo( ) moves the window so its upper-left corner is at the position specified by x and y. For security resasons, browsers may restrict this method so it cannot move a window offscreen.

Get JavaScript: The Definitive Guide, Fourth Edition 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.