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/window/scrollbars/index.html | 70 +++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 files/ja/web/api/window/scrollbars/index.html (limited to 'files/ja/web/api/window/scrollbars') diff --git a/files/ja/web/api/window/scrollbars/index.html b/files/ja/web/api/window/scrollbars/index.html new file mode 100644 index 0000000000..3ad2ce63e5 --- /dev/null +++ b/files/ja/web/api/window/scrollbars/index.html @@ -0,0 +1,70 @@ +--- +title: window.scrollbars +slug: Web/API/Window/scrollbars +tags: + - Gecko + - HTML DOM + - Window +translation_of: Web/API/Window/scrollbars +--- +
{{ApiRef}}
+ +

概要

+ +

scrollbars オブジェクトを返します。このバーの表示は、ウィンドウ内でトグル(表示/非表示の状態を切り替える)ことができます。

+ +

構文

+ +
objRef = window.scrollbars
+
+ +

+ +

以下の完全な HTML の例は、様々な "bar" オブジェクトの visible プロパティで利用可能な方法を示しています。

+ +
<DOCTYPE html>
+<html lang="ja">
+<head>
+<meta charset="UTF-8" />
+<title>様々な DOM テスト</title>
+
+<script>
+// 存在するウィンドウのバーの状態を変更します
+netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite");
+window.scrollbars.visible = !window.scrollbars.visible;
+</script>
+
+</head>
+<body>
+  <p>様々な DOM テスト</p>
+</body>
+</html>
+
+ +

仕様

+ + + + + + + + + + + + + + + + + + + +
仕様状態コメント
{{SpecName('HTML WHATWG', 'browsers.html#dom-window-scrollbars', 'Window.scrollbars')}}{{Spec2('HTML WHATWG')}}
{{SpecName('HTML5 W3C', 'browsers.html#dom-window-scrollbars', 'Window.scrollbars')}}{{Spec2('HTML5 W3C')}}
+ +

関連情報

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