BarProp.visible

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

Syntax

let visible = BarProp.visible;

Value

A Boolean, which is true if the bar represented by the used interface element is visible.

Examples

The following example prints true to the console if the location bar is visible, false if it is not.

console.log(window.locationbar.visible);

Specifications

Specification
HTML Standard (HTML)
# dom-barprop-visible

Browser compatibility

BCD tables only load in the browser