Summary
Gets the Y coordinate of the top-left corner of the window's viewport, in screen coordinates.
Note: This coordinate is reported in CSS pixels, not in hardware pixels. That means it can be affected by the zoom level; to compute the actual number of physical screen pixels, you should use the [[../../../../Mozilla/Tech/XPCOM/Reference/Interface/nsIDOMWindowUtils|nsIDOMWindowUtils.screenPixelsPerCSSPixel
]] property.
Syntax
screenY = window.mozInnerScreenY;
Value
screenY
stores thewindow.mozInnerScreenY
property value.- The
window.mozInnerScreenY
property is a floating point, read-only value; it has no default value.
Specification
Not part of any W3C technical specification or recommendation.
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Chrome
No support No |
Edge
No support No |
Firefox
Full support Yes |
IE
No support No |
Opera
No support No |
Safari
No support No |
WebView Android
No support No |
Chrome Android
No support No |
Firefox Android
Full support Yes |
Opera Android
No support No |
Safari iOS
No support No |
Samsung Internet Android
No support No |
Legend
- Full support
- Full support
- No support
- No support
- Non-standard. Expect poor cross-browser support.'
- Non-standard. Expect poor cross-browser support.
See also
window.mozInnerScreenX
- [[../../../../Mozilla/Tech/XPCOM/Reference/Interface/nsIDOMWindowUtils|
nsIDOMWindowUtils.screenPixelsPerCSSPixel
]]
Window.mozInnerScreenY by Mozilla Contributors is licensed under CC-BY-SA 2.5.