From 1407c8fdef01ecd0ffb8a8bd46e7113f119b9fde Mon Sep 17 00:00:00 2001 From: julieng Date: Sat, 2 Oct 2021 17:20:24 +0200 Subject: convert content to md --- files/fr/web/api/document/hidden/index.md | 46 ++++++++++++------------------- 1 file changed, 18 insertions(+), 28 deletions(-) (limited to 'files/fr/web/api/document/hidden') diff --git a/files/fr/web/api/document/hidden/index.md b/files/fr/web/api/document/hidden/index.md index 66da5b2e9d..23432385c6 100644 --- a/files/fr/web/api/document/hidden/index.md +++ b/files/fr/web/api/document/hidden/index.md @@ -3,39 +3,29 @@ title: Document.hidden slug: Web/API/Document/hidden translation_of: Web/API/Document/hidden --- -

{{ ApiRef("DOM") }}

+{{ ApiRef("DOM") }} -

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

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

Syntaxe

+## Syntaxe -
var boolean = document.hidden
+ var boolean = document.hidden -

Exemples

+## Exemples -
document.addEventListener("visibilitychange", function() {
+```js
+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")}}

+``` + +## Spécifications + +| Specification | Status | Comment | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------- | ------------------ | +| {{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