# How do I find out what my pop up ID is

**URL:** <https://forum.inductiveautomation.com/t/how-do-i-find-out-what-my-pop-up-id-is/44326>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [March 10, 2021, 6:30pm UTC](https://forum.inductiveautomation.com/t/how-do-i-find-out-what-my-pop-up-id-is/44326 "2021-03-10T18:30:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![seanbuckley2698](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@seanbuckley2698](https://forum.inductiveautomation.com/u/seanbuckley2698)\
**Post date:** [March 10, 2021, 6:30pm UTC](https://forum.inductiveautomation.com/t/how-do-i-find-out-what-my-pop-up-id-is/44326/1 "2021-03-10T18:30:08Z")

</div>

How do I find out what mypopupID is?  
I am using this code

```auto
system.perspective.openPopup('myPopupId', 'folder/myView', position = {'left':100,'top':100})

```

---

<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:** [March 10, 2021, 6:35pm UTC](https://forum.inductiveautomation.com/t/how-do-i-find-out-what-my-pop-up-id-is/44326/2 "2021-03-10T18:35:58Z")

</div>

If you’re opening a popup, _you_ decide on an ID. It’s only useful if you want to programatically close the popup later.

---

<div class="post-metadata">

**Author:** ![seanbuckley2698](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@seanbuckley2698](https://forum.inductiveautomation.com/u/seanbuckley2698)\
**Post date:** [March 10, 2021, 6:40pm UTC](https://forum.inductiveautomation.com/t/how-do-i-find-out-what-my-pop-up-id-is/44326/3 "2021-03-10T18:40:26Z")

</div>

Ahh, Ok I get it, thanks for the quick response.

---

<div class="post-metadata">

**Author:** ![chandler](https://avatars.discourse-cdn.com/v4/letter/c/e9a140/32.png) [@chandler](https://forum.inductiveautomation.com/u/chandler)\
**Post date:** [March 10, 2021, 9:47pm UTC](https://forum.inductiveautomation.com/t/how-do-i-find-out-what-my-pop-up-id-is/44326/4 "2021-03-10T21:47:02Z")

</div>

You can pass the id into the popup as a parameter, then if you want to close the popup from a component event action such as a popup action or script, you can reference the parameter when you need to know the id.

in scripting it would look like this (assuming you named the parameter “id”:

```auto
system.perspective.closePopup(self.view.params.id)

```
