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.
visible
は BarProp
インターフェイスの読み取り専用プロパティで、このオブジェクトが表すユーザーインターフェイス要素が可視であれば 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 GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
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
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.