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/ja/web/api/document/hidden/index.html | 53 +++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 files/ja/web/api/document/hidden/index.html (limited to 'files/ja/web/api/document/hidden') diff --git a/files/ja/web/api/document/hidden/index.html b/files/ja/web/api/document/hidden/index.html new file mode 100644 index 0000000000..65aef6d5af --- /dev/null +++ b/files/ja/web/api/document/hidden/index.html @@ -0,0 +1,53 @@ +--- +title: Document.hidden +slug: Web/API/Document/hidden +tags: + - DOM + - Document + - Page Visibility API + - Property + - Read-only + - Reference + - Web +translation_of: Web/API/Document/hidden +--- +

{{ ApiRef("DOM") }}

+ +

Document.hidden は読み取り専用のプロパティで、ページが非表示になっているとみられるかどうかを示す論理値を返します。

+ +

構文

+ +
var boolean = document.hidden
+ +

+ +
document.addEventListener("visibilitychange", function() {
+  console.log( document.hidden );
+  // 振る舞いを修正...
+});
+
+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('Page Visibility API','#dom-document-hidden', 'Document.hidden')}}{{Spec2('Page Visibility API')}}初回定義
+ +

ブラウザーの互換性

+ + + +

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

-- cgit v1.2.3-54-g00ecf