--- title: Window.locationbar slug: Web/API/Window/locationbar translation_of: Web/API/Window/locationbar ---
返回一个可以检查visibility属性的 locationbar
对象。
objRef = window.locationbar
以下完整的HTML示例显示了使用locationbar对象的visible属性的方式.
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>Various DOM Tests</title> <script> var visible = window.locationbar.visible; </script> </head> <body> <p>Various DOM Tests</p> </body> </html>
Specification | Status | Comment |
---|---|---|
{{SpecName('HTML WHATWG', 'browsers.html#dom-window-locationbar', 'Window.locationbar')}} | {{Spec2('HTML WHATWG')}} | |
{{SpecName('HTML5 W3C', 'browsers.html#dom-window-locationbar', 'Window.locationbar')}} | {{Spec2('HTML5 W3C')}} |