JavaScript Window method: moveTo()
[this page | pdf | back links]
The moveTo() method (when applied to Window
objects in the JavaScript
BOM) moves a window
to a position specified by the x and y coordinates of its left top corner.
It
has the following syntax with the following parameters. It does not return a
value.
window.moveTo(x, y)
|
Parameter
|
Required / Optional
|
Description
|
|
x
|
Required
|
Positive or negative
number specifying number of pixels horizontally
|
|
y
|
Required
|
Positive or negative
number specifying number of pixels vertically
|
NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)