Skip to main content

setWinPosition

Sets the screenX and screenY of current window.

See Window at mdn to know about these values.

setWinPosition(screenX, screenY)

Parameters#

  • screenX: A number. Horizontal distance from left of OS screen to left of browser window in pixels.
  • screenY: A number. Vertical distance from top of OS screen to top of browser window in pixels.

Returns#

  • No value

Example#

setWinPosition(75, 25)