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/fullscreen/index.html | 80 +++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 files/ja/web/api/document/fullscreen/index.html (limited to 'files/ja/web/api/document/fullscreen') diff --git a/files/ja/web/api/document/fullscreen/index.html b/files/ja/web/api/document/fullscreen/index.html new file mode 100644 index 0000000000..83389f0fdd --- /dev/null +++ b/files/ja/web/api/document/fullscreen/index.html @@ -0,0 +1,80 @@ +--- +title: Document.fullscreen +slug: Web/API/Document/fullscreen +tags: + - API + - Document + - Fullscreen API + - Read-only + - Reference + - プロパティ +translation_of: Web/API/Document/fullscreen +--- +
{{APIRef("Fullscreen API")}}{{Deprecated_Header}}
+ +

廃止された {{domxref("Document")}} インターフェイスの fullscreen プロパティは読み取り専用で、文書が現在全画面モードで表示されているかどうかを報告します。

+ +

このプロパティは読み取り専用ですが、変更されても (strict モードでも) 例外を投げません。セッターは何もしないので、無視されます。

+ +
+

メモ: このプロパティは非推奨であり、文書が全画面モードになっているかどうかは、 {{DOMxRef("Document.fullscreenElement")}} が null ではないことで確認することができます。

+
+ +

構文

+ +
var isFullScreen = document.fullscreen;
+
+ +

返値

+ +

真偽値であり、文書が全画面モードで表示されているときに true、それ以外の場合に false になります。

+ +

+ +

このシンプルな関数は、現在全画面モードがアクティブになっているかどうかを、廃止された fullscreen プロパティを使用して報告しています。

+ +
function isDocumentInFullScreenMode() {
+  return document.fullscreen;
+}
+
+ +

一方、次の例では、現在の fullscreenElement プロパティを使用して同じことを確認しています。

+ +
function isDocumentInFullScreenMode() {
+  return document.fullscreenElement !== null;
+}
+ +

fullscreenElementnull でなければ、これは true を返し、全画面モードで表示されていることを示します。

+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName("Fullscreen", "#dom-document-fullscreen", "Document.fullscreen")}}{{Spec2("Fullscreen")}}初回定義 (廃止プロパティとして)
+ +

ブラウザーの対応

+ + + +

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

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf