Course Content
Javascript Full Course
0/87
JavaScript Course
About Lesson

The Window moveBy() method is used for moving a window with a specified number of pixels relative to its current coordinates. The Window moveBy() method accepts two parameters x and y which denote the number of pixels to move the window horizontally and vertically.

Syntax:

window.moveBy(x, y)

Parameters Used:
  • x: It is a mandatory parameter that specifies the number of pixels to move the window horizontally.
  • y: It is a mandatory parameter that specifies the number of pixels to move the window vertically.

The moveTo() method is used in the window to moves the window from the left and top coordinates.

Syntax:

window.moveTo(x, y)

Parameter:  
  • x: A positive or negative number that specifies the horizontal coordinate to be moved to
  • y: A positive or negative number specifies the vertical coordinate to be moved to
Exercise Files
No Attachment Found
No Attachment Found
Join the conversation

Introducing Official ApeStaking Protocol for ApeCoin.

New Blur NFT Marketplace Courting Professional.