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.

BarPropDocument Object Model のインターフェイスで、ウェブページ内のスクリプトに公開されるウェブブラウザーのユーザーインターフェイス要素を表します。以下のインターフェイス要素はそれぞれ BarProp オブジェクトで表します。

Window.locationbar

ブラウザーのロケーションバーです。

Window.menubar

ブラウザーのメニューバーです。

Window.personalbar

ブラウザーの個人バーです

Window.scrollbars

ブラウザーのスクロールバーです。

Window.statusbar

ブラウザーのステータスバーです。

Window.toolbar

ブラウザーのツールバーです。

BarProp インターフェイスは直接アクセスするのではなく、これらの要素のいずれかを介してアクセスします。

インスタンスプロパティ

BarProp.visible 読取専用

Boolean で、用いるインターフェイス要素で表すバーが可視であれば真になります。

次の例は、ロケーションバーを表す BarProp オブジェクトをコンソールに出力します。

js
console.log(window.locationbar);

仕様書

Specification
HTML
# barprop

ブラウザーの互換性

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
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