--- title: Window.screenX slug: Web/API/Window/screenX tags: - API - Propriété - Window - lecture seule translation_of: Web/API/Window/screenX ---
La propriété Window.screenX
retourne la distance honrizontale, in CSS pixels, of the left border of the user's browser from the left side of the screen.
lLoc = window.screenX
lLoc
is the number of CSS pixels from the left side the screen.Specification | Status | Commentaire |
---|---|---|
{{ SpecName('CSSOM View', '#dom-window-screenx', 'Window.screenX') }} | {{ Spec2('CSSOM View') }} | Définition initiale |
{{ CompatibilityTable() }}
Fonctionnalitée | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Support basic | {{ CompatVersionUnknown() }} | {{ CompatVersionUnknown() }} [1] | {{ CompatVersionUnknown() }} | {{ CompatVersionUnknown() }} | {{ CompatVersionUnknown() }} |
Fonctionnalitée | Android | Chrome pour Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Support basic | {{ CompatVersionUnknown() }} | {{ CompatVersionUnknown() }} | {{ CompatVersionUnknown() }} [1] | {{ CompatVersionUnknown() }} | {{ CompatVersionUnknown() }} | {{ CompatVersionUnknown() }} |
[1] Avant Firefox 28, Gecko utilisait les dimensions de l'appareil au lieu des pixels CSS ; dans d'autres mots, it was assuming a value of screenPixelsPerCSSPixel
of 1 for any device.