Javascript [Electronic resources] : The Definitive Guide (4th Edition)

David Flanagan

نسخه متنی -صفحه : 844/ 511
نمايش فراداده

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.