# Closing multiple popup windows at once

**URL:** <https://forum.inductiveautomation.com/t/closing-multiple-popup-windows-at-once/100906>\
**Category:** Ignition\
**Tags:** vision, ignition81\
**Created:** [January 15, 2025, 8:08am UTC](https://forum.inductiveautomation.com/t/closing-multiple-popup-windows-at-once/100906 "2025-01-15T08:08:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phat\_Truc](https://avatars.discourse-cdn.com/v4/letter/p/dc4da7/32.png) [@Phat\_Truc](https://forum.inductiveautomation.com/u/Phat_Truc)\
**Post date:** [January 15, 2025, 8:08am UTC](https://forum.inductiveautomation.com/t/closing-multiple-popup-windows-at-once/100906/1 "2025-01-15T08:08:14Z")

</div>

In my project, in a main popup window, operators can call out multiple popup windows from it. A feature to be developed is that when operators close that main popup window, others popup windows are also closed. The problem is that in Ignition, window instances have the same name, I have checked that window.hashCode() can be used to identify different window instances but nothing to do with that code to close the window.

---

<div class="post-metadata">

**Author:** ![Phat\_Truc](https://avatars.discourse-cdn.com/v4/letter/p/dc4da7/32.png) [@Phat\_Truc](https://forum.inductiveautomation.com/u/Phat_Truc)\
**Post date:** [January 15, 2025, 8:10am UTC](https://forum.inductiveautomation.com/t/closing-multiple-popup-windows-at-once/100906/2 "2025-01-15T08:10:47Z")

</div>

> [@Identify window instances](https://forum.inductiveautomation.com/t/identify-window-instances/15071/2):
>
> windows = system.gui.getOpenedWindows() for window in windows: print window.getTitle(), window.getPath(), window.getName(), window.hashCode() window.hashCode() will give you a unique id for each otherwise identical window. window.isStartMaximized() should give you a good idea of whether it’s a popup window or not.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 15, 2025, 4:32pm UTC](https://forum.inductiveautomation.com/t/closing-multiple-popup-windows-at-once/100906/3 "2025-01-15T16:32:18Z")

</div>

> **[system.nav.closeWindow | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-nav/system-nav-closeWindow)**
>
> Given a window path, or a reference to a window itself, it will close the window.

I'm not quite sure what you're asking for.
