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/document/hidden/index.html | 43 +++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 files/fr/web/api/document/hidden/index.html (limited to 'files/fr/web/api/document/hidden/index.html') diff --git a/files/fr/web/api/document/hidden/index.html b/files/fr/web/api/document/hidden/index.html new file mode 100644 index 0000000000..d4b6aaf64b --- /dev/null +++ b/files/fr/web/api/document/hidden/index.html @@ -0,0 +1,43 @@ +--- +title: Document.hidden +slug: Web/API/Document/hidden +translation_of: Web/API/Document/hidden +--- +

{{ ApiRef("DOM") }}

+ +

La propriété Document.hidden retourne un Booléen qui indique si la page est considérée cachée ou pas.

+ +

Syntaxe

+ +
var boolean = document.hidden
+ +

Exemples

+ +
document.addEventListener("visibilitychange", function() {
+  console.log( document.hidden );
+  // Modifier le comportement...
+});
+
+ +

Spécifications

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('Page Visibility API','#dom-document-hidden', 'Document.hidden')}}{{Spec2('Page Visibility API')}}Initial definition
+ +

Browser compatibility

+ + + +

{{Compat("api.Document.hidden")}}

-- cgit v1.2.3-54-g00ecf