Name
Window.moveTo( ): move a window to an absolute position â 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. It is
usually a bad idea to move a userâs browser window unless he
explicitly request it. Scripts should typically use this method only
on windows that they created themselves with Window.open( )
.
Get JavaScript: The Definitive Guide, 5th 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.