aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/window/locationbar/index.html
blob: 4f6343026c9973ed9f9d80bba739358cd2745ca3 (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
---
title: window.locationbar
slug: Web/API/Window/locationbar
tags:
  - Gecko
  - HTML DOM
  - Property
  - Reference
  - Window
  - 要更新
translation_of: Web/API/Window/locationbar
---
<p>{{ ApiRef() }} {{ 英語版章題("Summary") }}</p>

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

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

<p>{{ 英語版章題("Syntax") }}</p>

<h3 id="構文">構文</h3>

<pre class="syntaxbox"><var>objRef</var> = window.locationbar
</pre>

<p>{{ 英語版章題("Example") }}</p>

<h3 id="例"></h3>

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

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

<h2 id="仕様">仕様</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">仕様</th>
   <th scope="col">状態</th>
   <th scope="col">コメント</th>
  </tr>
  <tr>
   <td>{{SpecName('HTML WHATWG', 'browsers.html#dom-window-locationbar', 'Window.locationbar')}}</td>
   <td>{{Spec2('HTML WHATWG')}}</td>
   <td></td>
  </tr>
  <tr>
   <td>{{SpecName('HTML5 W3C', 'browsers.html#dom-window-locationbar', 'Window.locationbar')}}</td>
   <td>{{Spec2('HTML5 W3C')}}</td>
   <td></td>
  </tr>
 </tbody>
</table>

<h2 id="関連項目">関連項目</h2>

<ul>
 <li>{{domxref("window.locationbar")}}, {{domxref("window.menubar")}}, {{domxref("window.personalbar")}}, {{domxref("window.scrollbars")}}, {{domxref("window.statusbar")}}, {{domxref("window.toolbar")}}</li>
</ul>