Summary
Gets the X 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
nsIDOMWindowUtils.screenPixelsPerCSSPixel
property.Syntax
screenX = window.mozInnerScreenX;
Value
- screenX stores the
window.mozInnerScreenX
property value. - The
window.mozInnerScreenX
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.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
mozInnerScreenX | 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.