Window screenTop property
- Vorherige Seite screenLeft
- Nächste Seite screenX
- Zurück zur vorherigen Ebene Window-Objekt
Definition and usage
screenTop
The property returns the y (vertical) 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.screenTop
Return value
Type | Description |
---|---|
Number | The window relative to the screen yPosition (vertical) in pixels. |
Browser support
All browsers support window.screenTop
:
Chrome | IE | Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
Chrome | IE | Edge | Firefox | Safari | Opera |
Unterstützt | 11 | Unterstützt | Unterstützt | Unterstützt | Unterstützt |
window.screenTop
Wird in Firefox vor Version 64 (November 2018) nicht unterstützt.
- Vorherige Seite screenLeft
- Nächste Seite screenX
- Zurück zur vorherigen Ebene Window-Objekt