aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/window/screenx/index.md
blob: aeea7a1763d30e2c77a79aa0ff2398a0a3ec4bd7 (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
---
title: Window.screenX
slug: Web/API/Window/screenX
tags:
  - API
  - Propriété
  - Window
  - lecture seule
translation_of: Web/API/Window/screenX
---
{{APIRef}}

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.

## Syntax

    lLoc = window.screenX

- _`lLoc`_ is the number of CSS pixels from the left side the screen.

## Specifications

| Specification                                                                                | Status                           | Commentaire         |
| -------------------------------------------------------------------------------------------- | -------------------------------- | ------------------- |
| {{ SpecName('CSSOM View', '#dom-window-screenx', 'Window.screenX') }} | {{ Spec2('CSSOM View') }} | Définition initiale |

## Compatibilité des navigateurs

{{Compat("api.Window.screenX")}}

## Voir aussi

- {{domxref("window.screenLeft")}}
- {{domxref("Window.screenY")}}