aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/window/menubar/index.html
blob: bfd99a1da9266b3b52d6f1d359b76aa8b9ac0820 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
---
title: Window.menubar
slug: Web/API/Window/menubar
translation_of: Web/API/Window/menubar
---
<p>{{ APIRef() }}</p>

<h2 id="概要">概要</h2>

<p>返回一个可以检测visibility属性的 <code>menubar</code> 对象。</p>

<h2 id="语法">语法</h2>

<pre class="eval"><var>objRef</var> = window.menubar
</pre>

<h2 id="示例">示例</h2>

<p>以下完整的HTML示例显示了使用locationbar对象的visible属性的方式。</p>

<pre class="brush:html">&lt;html&gt;
&lt;head&gt;
  &lt;title&gt;Various DOM Tests&lt;/title&gt;
  &lt;script&gt;
    var visible = window.menubar.visible;
  &lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
  &lt;p&gt;Various DOM Tests&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>

<h2 id="规范">规范</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
  <tr>
   <td>{{SpecName('HTML WHATWG', 'browsers.html#dom-window-menubar', 'Window.menubar')}}</td>
   <td>{{Spec2('HTML WHATWG')}}</td>
   <td> </td>
  </tr>
  <tr>
   <td>{{SpecName('HTML5 W3C', 'browsers.html#dom-window-menubar', 'Window.menubar')}}</td>
   <td>{{Spec2('HTML5 W3C')}}</td>
   <td> </td>
  </tr>
 </tbody>
</table>

<h2 id="相关链接">相关链接:</h2>

<p><a href="/en/DOM/window.locationbar">window.locationbar</a>, <a href="/en/DOM/window.personalbar">window.personalbar</a>, <a href="/en/DOM/window.scrollbars">window.scrollbars</a>, <a href="/en/DOM/window.statusbar">window.statusbar</a>, <a href="/en/DOM/window.toolbar">window.toolbar</a></p>