Easy Tutorial
❮ Jsref Obj Global Jsref Setdate ❯

Window screenX and screenY Properties


Definition and Usage

The screenX and screenY properties return the X and Y coordinates of the window relative to the screen.

Syntax


Browser Support

All major browsers support the screenX and screenY properties except Internet Explorer.

Note: Internet Explorer uses window.screenLeft and window.screenTop to get the same values.


Example

Return the X and Y coordinates of a new window relative to the screen:


❮ Jsref Obj Global Jsref Setdate ❯