BarProp: visible プロパティ

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.

visibleBarProp インターフェイスの読み取り専用プロパティで、このオブジェクトが表すユーザーインターフェイス要素が可視であれば true を返します。

Boolean は最上位のウィンドウが window.open によって request a popup window.popup_feature で開かれた場合に真になります。

メモ: 過去には、これは使用するインターフェイス要素が表示されているかどうかを表していました。しかし、プライバシーの観点から、これは各インターフェイス要素の実際の可視性を表すことはできなくなりました。

次の例はウィンドウがポップアップでない場合、コンソールに true を出力します。

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

仕様書

Specification
HTML
# dom-barprop-visible

ブラウザーの互換性

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