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.
TheBarProp interface of theDocument Object Model represents the web browser user interface elements that are exposed to scripts in web pages. Each of the following interface elements are represented by aBarProp object.
Window.locationbarThe browser location bar.
Window.menubarThe browser menu bar.
Window.personalbarThe browser personal bar.
Window.scrollbarsThe browser scrollbars.
Window.statusbarThe browser status bar.
Window.toolbarThe browser toolbar.
TheBarProp interface is not accessed directly, but via one of these elements.
In this article
Instance properties
BarProp.visibleRead onlyA
Boolean, which is true if the bar represented by the used interface element is visible.
Examples
The following example prints aBarProp object to the console that represents the location bar.
console.log(window.locationbar);Specifications
| Specification |
|---|
| HTML> # barprop> |