BarProp
Baseline Widely available *
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
* 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 |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
BarProp | ||||||||||||
visible | ||||||||||||
Returns true for non-popup windows |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.