Skip to main content

getWinPosition

Retrieves the screenX and screenY of current window.

See Window at mdn to know about these values.

getWinPosition()

Returns#

  • A map with keys:
    • x: A number. screenX of the window in pixels.
    • y: A number. screenY of the window in pixels.

Example#

print(getWinPosition())# prints, {x: 0, y: 0}