Window moveBy() method
Window Object
Definition and Usage
The moveBy() method moves the window by the specified number of pixels relative to its current coordinates.
Syntax
window.moveBy(x,y)
Browser support





All major browsers support the moveBy() method
Example
Example
Move the window 250 pixels relative to its current position:
Try it »
Window Object