W3cubDocs

/Web APIs

BarProp: visible property

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 requesting a popup window.popup_feature.

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

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
visible 1 12 1 No 15 3 ≤37 18 4 14 1 1.0
returns_popup 98 98 96 No 84 No 98 98 96 68 No 18.0

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