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
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
visible |
43 |
12 |
1 |
No |
30 |
3 |
43 |
43 |
4 |
30 |
1 |
4.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/visible