# Hide a popup window without closing it?

**URL:** <https://forum.inductiveautomation.com/t/hide-a-popup-window-without-closing-it/87627>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [March 20, 2024, 2:06pm UTC](https://forum.inductiveautomation.com/t/hide-a-popup-window-without-closing-it/87627 "2024-03-20T14:06:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [March 20, 2024, 2:06pm UTC](https://forum.inductiveautomation.com/t/hide-a-popup-window-without-closing-it/87627/1 "2024-03-20T14:06:09Z")

</div>

is there a way to hide a popup windows in perspective without closing it ?

A then a way to unhide it.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [March 20, 2024, 2:11pm UTC](https://forum.inductiveautomation.com/t/hide-a-popup-window-without-closing-it/87627/2 "2024-03-20T14:11:01Z")

</div>

Aw, don't do that.  
If that's really what you need then why not open a new browser window with the popup view?

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [March 20, 2024, 2:23pm UTC](https://forum.inductiveautomation.com/t/hide-a-popup-window-without-closing-it/87627/3 "2024-03-20T14:23:57Z")

</div>

my popup windows contain a video and I would like to go in Picture In picture mode and hiding the popup windows to keep the PiP windows...

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [March 18, 2025, 2:20pm UTC](https://forum.inductiveautomation.com/t/hide-a-popup-window-without-closing-it/87627/4 "2025-03-18T14:20:26Z")

</div>

@victordcq do you think it's possible to inject some JS to toggle the visibility of a popup from a button in the main page:

visibility: visible \<=\> hidden

for:

```python
<div id="popup-popup-video" class="popup ia_popup" tabindex="1" style="touch-action: none; z-index: 12560; 
visibility: visible; bottom: 0px; right: 0px; width: calc(2px + 54vw); height: calc(32px + 30.3764vw);">

```

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [March 18, 2025, 3:55pm UTC](https://forum.inductiveautomation.com/t/hide-a-popup-window-without-closing-it/87627/5 "2025-03-18T15:55:29Z")

</div>

Seems to work fine with:

custom prop

```python
def transform(self, value, quality, timestamp):
	if value == True:
		return "<img style='display:none' src='/favicon.ico' onload=\"let popup = document.getElementById('popup-popup-video');popup.style.visibility = 'visible';\"></img>"
	else:
		return "<img style='display:none' src='/favicon.ico' onload=\"let popup = document.getElementById('popup-popup-video');popup.style.visibility = 'hidden';\"></img>"

```
