---
title: Window.locationbar
slug: Web/API/Window/locationbar
tags:
- API
- HTML DOM
- NeedsExample
- NeedsMarkupWork
- Property
- Reference
- Window
translation_of: Web/API/Window/locationbar
---
<div>{{APIRef}}</div>

<p><code>locationbar</code> オブジェクトを返し、これで表示/非表示を確認することができます。</p>

<h2 id="Syntax">構文</h2>

<pre class="brush: js"><var>objRef</var> = window.locationbar
</pre>

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

<p>次の HTML の完全な例は、 <code>locationbar</code> オブジェクトの <code>visible</code> プロパティの使用方法を示しています。</p>

<pre class="brush:html">&lt;!DOCTYPE html&gt;
&lt;html lang="ja"&gt;
&lt;head&gt;
&lt;meta charset="UTF-8" /&gt;
&lt;title&gt;様々な DOM テスト&lt;/title&gt;

&lt;script&gt;
var 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="Specifications">仕様書</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="Browser_compatibility">ブラウザーの互換性</h2>

<p>{{Compat("api.Window.locationbar")}}</p>

<h2 id="See_also">関連情報</h2>

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