BarProp

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.locationbar

The browser location bar.

Window.menubar

The browser menu bar.

Window.personalbar

The browser personal bar.

Window.scrollbars

The browser scrollbars.

Window.statusbar

The browser status bar.

Window.toolbar

The browser toolbar.

The BarProp interface is not accessed directly, but via one of these elements.

Instance properties

BarProp.visible Read only

A Boolean, which is true if the bar represented by the used interface element is visible.

Examples

The following example prints a BarProp object to the console that represents the location bar.

js
console.log(window.locationbar);

Specifications

Specification
HTML
# barprop

Browser compatibility

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
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