From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/fr/web/api/window/screen/index.html | 55 +++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 files/fr/web/api/window/screen/index.html (limited to 'files/fr/web/api/window/screen') diff --git a/files/fr/web/api/window/screen/index.html b/files/fr/web/api/window/screen/index.html new file mode 100644 index 0000000000..ff16ac6bc9 --- /dev/null +++ b/files/fr/web/api/window/screen/index.html @@ -0,0 +1,55 @@ +--- +title: Window.screen +slug: Web/API/Window/screen +tags: + - API + - CSSOM View + - DOM + - Fenêtre + - Propriété + - Vue CSSOM + - Écran +translation_of: Web/API/Window/screen +--- +
{{APIRef("CSSOM View")}}
+ +
Retourne une référence à l'objet screen associé à la fenêtre. L'object screen, qui implémente l'interface {{domxref("Screen")}}, est un objet spécial servant à examiner les propriétés de l'écran qui affiche la fenêtre courante.
+ +

Syntaxe

+ +
objetEcran = window.screen;
+
+ +

Examples

+ +
if (screen.pixelDepth < 8) {
+  // utiliser la page en colorisation réduite
+} else {
+  // utiliser la page en coolorisation normale
+}
+
+ +

Spécifications

+ + + + + + + + + + + + + + + + +
SpécificationÉtatCommentaires
{{SpecName('CSSOM View', '#dom-window-screen', 'window.screen')}}{{Spec2('CSSOM View')}} 
+ +

Compatibilité des navigateurs

+ + + +

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

-- cgit v1.2.3-54-g00ecf