aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/window/locationbar/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/api/window/locationbar/index.html')
-rw-r--r--files/zh-cn/web/api/window/locationbar/index.html63
1 files changed, 63 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/window/locationbar/index.html b/files/zh-cn/web/api/window/locationbar/index.html
new file mode 100644
index 0000000000..a1b3af3db5
--- /dev/null
+++ b/files/zh-cn/web/api/window/locationbar/index.html
@@ -0,0 +1,63 @@
+---
+title: Window.locationbar
+slug: Web/API/Window/locationbar
+translation_of: Web/API/Window/locationbar
+---
+<div>{{APIRef}}</div>
+
+<h2 id="概要">概要</h2>
+
+<p>返回一个可以检查visibility属性的 <code>locationbar</code> 对象。</p>
+
+<h2 id="语法">语法</h2>
+
+<pre class="syntaxbox"><var>objRef</var> = window.locationbar </pre>
+
+<h2 id="示例">示例</h2>
+
+<p>以下完整的HTML示例显示了使用locationbar对象的visible属性的方式.</p>
+
+<pre class="brush:html">&lt;!DOCTYPE html&gt;
+&lt;html lang="en"&gt;
+&lt;head&gt;
+&lt;meta charset="UTF-8" /&gt;
+&lt;title&gt;Various DOM Tests&lt;/title&gt;
+
+&lt;script&gt;
+var visible = window.locationbar.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-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>