From c05efa8d7ae464235cf83d7c0956e42dc6974103 Mon Sep 17 00:00:00 2001 From: julieng Date: Sat, 2 Oct 2021 17:20:14 +0200 Subject: move *.html to *.md --- files/fr/web/api/document/hidden/index.md | 41 +++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 files/fr/web/api/document/hidden/index.md (limited to 'files/fr/web/api/document/hidden/index.md') diff --git a/files/fr/web/api/document/hidden/index.md b/files/fr/web/api/document/hidden/index.md new file mode 100644 index 0000000000..66da5b2e9d --- /dev/null +++ b/files/fr/web/api/document/hidden/index.md @@ -0,0 +1,41 @@ +--- +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