Name
Window.moveBy( ) — move a window to a relative position
Availability
JavaScript 1.2
Synopsis
window
.moveBy(dx
,dy
)
Arguments
-
dx
The number of pixels to move the window to the right.
-
dy
The number of pixels to move the window down.
Description
moveBy( )
moves the
window
to the relative position specified
by dx
and dy
.
For security reasons, browsers may restrict scripts so they cannot
move a window off the screen.
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.