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.

Properties

BarProp.visibleRead 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.

console.log(window.locationbar);

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
BarProp
29
12
1
No
16
3
≤37
29
4
16
1
2.0
visible
43
12
1
No
30
3
43
43
4
30
1
4.0

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/BarProp