--- title: Window.screenX slug: Web/API/Window/screenX tags: - API - Propriété - Window - lecture seule translation_of: Web/API/Window/screenX --- <div>{{APIRef}}</div> <p>La propriété <code><strong>Window.screenX</strong></code> retourne la distance honrizontale, in CSS pixels, of the left border of the user's browser from the left side of the screen.</p> <h2 id="Syntax" name="Syntax">Syntax</h2> <pre class="syntaxbox"><em>lLoc</em> = window.screenX </pre> <ul> <li><em><code>lLoc</code></em> is the number of CSS pixels from the left side the screen.</li> </ul> <h2 id="Specifications" name="Specifications">Specifications</h2> <table class="standard-table" style="height: 49px; width: 1000px;"> <thead> <tr> <th scope="col">Specification</th> <th scope="col">Status</th> <th scope="col">Commentaire</th> </tr> </thead> <tbody> <tr> <td>{{ SpecName('CSSOM View', '#dom-window-screenx', 'Window.screenX') }}</td> <td>{{ Spec2('CSSOM View') }}</td> <td>Définition initiale</td> </tr> </tbody> </table> <h2 id="Browser_compatibility">Compatibilité des navigateurs</h2> <p>{{Compat("api.Window.screenX")}}</p> <h2 id="See_also">Voir aussi</h2> <ul> <li>{{domxref("window.screenLeft")}}</li> <li>{{domxref("Window.screenY")}}</li> </ul>