Skip to content

Commit

Permalink
2023/04/06 時点の英語版に基づき新規翻訳
Browse files Browse the repository at this point in the history
  • Loading branch information
mfuji09 committed Jan 7, 2024
1 parent f8f22d3 commit a77f020
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions files/ja/web/api/barprop/visible/index.md
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}}

0 comments on commit a77f020

Please sign in to comment.