Window screenLeft Property
- Previous Page screen
- Next Page screenTop
- Go Up One Level Window Object
Definition and Usage
screenLeft
The property returns the x (horizontal) position of the window relative to the screen.
See also:
Example
Return the x and y coordinates of the window:
let x = window.screenLeft; let y = window.screenTop;
Syntax
window.screenLeft
Return value
Type | Description |
---|---|
Number | Window position relative to the screen xPosition (horizontal) in pixels. |
Browser support
All browsers support window.screenLeft
:
Chrome | IE | Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
Chrome | IE | Edge | Firefox | Safari | Opera |
Supported | 11 | Supported | Supported | Supported | Supported |
window.screenLeft
Not supported in Firefox before version 64 (November 2018).
- Previous Page screen
- Next Page screenTop
- Go Up One Level Window Object