Section 25.302. Window.moveTo( ): move a window to an absolute position


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

JavaScript 1.2:

25.302.1. Synopsis

 window.moveTo(x, y) 

25.302.1.1. Arguments

x

The X coordinate of the new window position.


y

The Y coordinate of the new window position.

25.302.2. 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( ).




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net