dom / latest / barprop.html /

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

console.log(window.locationbar);

Specifications

Specification
HTML Standard
# barprop

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
1
12
1
No
15
3
≤37
18
4
14
1
1.0
visible
1
12
1
No
15
3
≤37
18
4
14
1
1.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