-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
title: "BarProp: visible プロパティ" | ||
short-title: visible | ||
slug: Web/API/BarProp/visible | ||
l10n: | ||
sourceCommit: 135b8311a5e3d12789e8421845be3ce026ef72b8 | ||
--- | ||
|
||
{{APIRef("DOM")}} | ||
|
||
**`visible`** は {{domxref("BarProp")}} インターフェイスの読み取り専用プロパティで、このオブジェクトが表すユーザーインターフェイス要素が可視であれば `true` を返します。 | ||
|
||
## 値 | ||
|
||
{{jsxref("Boolean")}} は最上位のウィンドウが {{domxref("window.open")}} によって {{domxref("window.open", "request a popup window", "popup_feature", 1)}} で開かれた場合に真になります。 | ||
|
||
> **メモ:** 過去には、これは使用するインターフェイス要素が表示されているかどうかを表していました。しかし、プライバシーの観点から、これは各インターフェイス要素の実際の可視性を表すことはできなくなりました。 | ||
## 例 | ||
|
||
次の例はウィンドウがポップアップでない場合、コンソールに `true` を出力します。 | ||
|
||
```js | ||
console.log(window.locationbar.visible); | ||
``` | ||
|
||
## 仕様書 | ||
|
||
{{Specifications}} | ||
|
||
## ブラウザーの互換性 | ||
|
||
{{Compat}} |