# How can I check if a window is already open?

**URL:** <https://forum.inductiveautomation.com/t/how-can-i-check-if-a-window-is-already-open/22585>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [February 14, 2019, 6:44pm UTC](https://forum.inductiveautomation.com/t/how-can-i-check-if-a-window-is-already-open/22585 "2019-02-14T18:44:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [February 14, 2019, 6:44pm UTC](https://forum.inductiveautomation.com/t/how-can-i-check-if-a-window-is-already-open/22585/1 "2019-02-14T18:44:29Z")

</div>

I have a window that opens based on a client event tag change. There are two types of barcode, cases and products that go in those cases. What a case is scanned, a new window is opened, and then the user can scan products that are in the case to verify everything is where it should. This works fine.

But if a window is not opened and a product is scanned, I want to open up a new window with the relevant case if possible. Right now, if a product is scanned after a case, there is no new window, there is just some inter-window logic that is done.

What’s the easiest way to check if a popup window is already open?

---

<div class="post-metadata">

**Author:** ![mrogers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mrogers/32/4110_2.png) [@mrogers](https://forum.inductiveautomation.com/u/mrogers)\
**Post date:** [February 14, 2019, 6:49pm UTC](https://forum.inductiveautomation.com/t/how-can-i-check-if-a-window-is-already-open/22585/2 "2019-02-14T18:49:26Z")

</div>

You can use either system.gui.getOpenedWindows() for the window objects, or just system.gui.getOpenedWindowNames() for just the names.

Sounds like you’d probably just check if your popup window path is in system.gui.getOpenedWindowNames().

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [February 14, 2019, 6:50pm UTC](https://forum.inductiveautomation.com/t/how-can-i-check-if-a-window-is-already-open/22585/3 "2019-02-14T18:50:17Z")

</div>

Thanks, I was looking for something along those lines under the system.nav. Seems like what I need.
