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
: Anumber
.screenX
of the window in pixels.y
: Anumber
.screenY
of the window in pixels.
#
Exampleprint(getWinPosition())# prints, {x: 0, y: 0}