BarProp: visible property
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{APIRef("DOM")}}
The **visible** read-only property of the {{domxref("BarProp")}} interface returns true if the user interface element it represents is visible.
Value
A {{jsxref("Boolean")}}, which is true if the top-level window is opened by {{domxref("window.open")}} with the [popup](/en-US/docs/Web/API/Window/open#popup) feature enabled.
توجه: Historically this represented whether the interface element used is visible or not. But for privacy reasons, this no longer represents the actual visibility of each interface element.
Examples
The following example prints true to the console if the window is not a popup.
js
console.log(window.locationbar.visible);Specifications
{{Specifications}}
Browser compatibility
{{Compat}}