BarProp: visible property

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.

The visible read-only property of the BarProp interface returns true if the user interface element it represents is visible.

Value

A Boolean, which is true if the top-level window is opened by window.open with the popup feature enabled.

Note: Historically this represented whether the interface element used is visible or not. But for privacy reasons, this no longer represents the actual visibility of each interface element.

Examples

The following example prints true to the console if the window is not a popup.

js
console.log(window.locationbar.visible);

Specifications

Specification
HTML
# dom-barprop-visible

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