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