The BarProp interface of the Document 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 a BarProp object.
Window.locationbarThe browser location bar.
The browser menu bar.
Window.personalbarThe browser personal bar.
Window.scrollbarsThe browser scrollbars.
Window.statusbarThe browser status bar.
Window.toolbarThe browser toolbar.
The BarProp interface is not accessed directly, but via one of these elements.
BarProp.visible Read onlyA Boolean, which is true if the bar represented by the used interface element is visible.
The following example prints a BarProp object to the console that represents the location bar.
console.log(window.locationbar);