BarProp
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.
BarProp
は Document Object Model
のインターフェイスで、ウェブページ内のスクリプトに公開されるウェブブラウザーのユーザーインターフェイス要素を表します。以下のインターフェイス要素はそれぞれ BarProp
オブジェクトで表します。
Window.locationbar
-
ブラウザーのロケーションバーです。
-
ブラウザーのメニューバーです。
Window.personalbar
-
ブラウザーの個人バーです
Window.scrollbars
-
ブラウザーのスクロールバーです。
Window.statusbar
-
ブラウザーのステータスバーです。
Window.toolbar
-
ブラウザーのツールバーです。
BarProp
インターフェイスは直接アクセスするのではなく、これらの要素のいずれかを介してアクセスします。
インスタンスプロパティ
BarProp.visible
読取専用-
Boolean
で、用いるインターフェイス要素で表すバーが可視であれば真になります。
例
次の例は、ロケーションバーを表す BarProp
オブジェクトをコンソールに出力します。
console.log(window.locationbar);
仕様書
Specification |
---|
HTML # barprop |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
BarProp | ||||||||||||
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