Firefox Tomorrow

web api instance property

BarProp: visible property

View on MDN ↗

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

console.log(window.locationbar.visible);

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.