BarProp
Baseline
Widely available
*
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
* 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 オブジェクトをコンソールに出力します。
js
console.log(window.locationbar);
仕様書
| Specification |
|---|
| HTML> # barprop> |
ブラウザーの互換性
Loading…