BarProp
        
        
          
                Baseline
                
                  Widely available
                
                 *
              
        
        
        
          
                
              
                
              
                
              
        
        
      
      This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
* Some parts of this feature may have varying levels of support.
文档对象模型的 BarProp 接口表示 Web 浏览器用户界面向 web 页面公开的脚本,以下每个接口元素都由一个 BarProp 对象表示。
- Window.locationbar
- 
浏览器的地址栏。 
- 
浏览器的菜单栏。 
- Window.personalbar
- 
浏览器的个人栏。 
- Window.scrollbars
- 
浏览器的滚动条。 
- Window.statusbar
- 
浏览器的状态栏。 
- Window.toolbar
- 
浏览器的工具栏。 
BarProp 接口不是直接访问的,而是通过其中一个元素访问的。
实例属性
- BarProp.visible只读
- 
布尔值,如果所使用的界面元素表示的条是可见的,则返回 true。
示例
下面的示例在控制台输出一个表示地址栏的 BarProp 对象。
js
console.log(window.locationbar);
规范
| Specification | 
|---|
| HTML> # barprop> | 
浏览器兼容性
Loading…