Window.locationbar
locationbar
オブジェクトを返し、これで表示/非表示を確認することができます。
構文
objRef = window.locationbar
例
次の HTML の完全な例は、 locationbar
オブジェクトの visible
プロパティの使用方法を示しています。
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
<title>様々な DOM テスト</title>
<script>
var visible = window.locationbar.visible;
</script>
</head>
<body>
<p>様々な DOM テスト</p>
</body>
</html>
仕様書
Specification |
---|
HTML Standard # dom-window-locationbar-dev |
ブラウザーの互換性
BCD tables only load in the browser