aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/window/screenx/index.html
blob: 2ff4f0dc7bc64afc2dbe8f3ed78630bfbf245ae6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
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">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">Specifications</h2>

<table class="standard-table">
 <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>