JavaScript Window moveBy()
JavaScript Window moveBy()
The moveBy() method is used to move a window a number of pixels relative to its current coordinates.
Syntax:-
Its syntax is:- window.moveBy(x, y)
Further Explanation:-
Parameter | Description |
x | Required. Number of pixels to move the window horizontally. A positive or negative number. . |
y | Required. Number of pixels to move the window vertically. A positive or negative number. |