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

David Flanagan

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

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.