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

{{ ApiRef() }} {{ 英語版章題("Summary") }}

+ +

概要

+ +

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

+ +

{{ 英語版章題("Syntax") }}

+ +

構文

+ +
objRef = window.menubar
+
+ +

{{ 英語版章題("Example") }}

+ +

+ +

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

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

仕様

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

関連項目

+ +

window.locationbar, window.personalbar, window.scrollbars, window.statusbar, window.toolbar

-- cgit v1.2.3-54-g00ecf