# How to close all pop-ups from a view?

**URL:** <https://forum.inductiveautomation.com/t/how-to-close-all-pop-ups-from-a-view/116528>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [July 24, 2026, 11:23am UTC](https://forum.inductiveautomation.com/t/how-to-close-all-pop-ups-from-a-view/116528 "2026-07-24T11:23:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielps1818](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@danielps1818](https://forum.inductiveautomation.com/u/danielps1818)\
**Post date:** [July 24, 2026, 11:23am UTC](https://forum.inductiveautomation.com/t/how-to-close-all-pop-ups-from-a-view/116528/1 "2026-07-24T11:23:29Z")

</div>

Hi!

I have some views that have some buttons that open pop-ups.  
However, if I change the view the pop-ups stay open. Is there any way of when exiting view close "all open pop-ups from that view"?

Thx!

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [July 24, 2026, 12:17pm UTC](https://forum.inductiveautomation.com/t/how-to-close-all-pop-ups-from-a-view/116528/2 "2026-07-24T12:17:43Z")

</div>

Put a message handler on your popups that contain a script to close itself.

When you navigate away from an associated page, execute `system.perspective.sendMessage()` with the name of the handler you created on all the popups.
