# Is the pageID unique?

**URL:** <https://forum.inductiveautomation.com/t/is-the-pageid-unique/50722>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [September 8, 2021, 4:16pm UTC](https://forum.inductiveautomation.com/t/is-the-pageid-unique/50722 "2021-09-08T16:16:02Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [September 8, 2021, 5:19pm UTC](https://forum.inductiveautomation.com/t/is-the-pageid-unique/50722/6 "2021-09-08T17:19:43Z")

</div>

It's true that the Popup has no way to directly refer to the "parent" page it belongs to. You should only need to specify a pageId argument if you intent to target a _different_ page. For example, consider a session which has two pages open. You place a button which is supposed to close the other page. You would use something like this:

```auto
session_objs = system.perspective.getSessionInfo()
for session_obj in session_objs:
    if session_obj.id == self.session.props.id:
        for page_id in session_obj.pageIds:
            if page_id != self.page.props.pageId:
                system.perspective.closePage(pageId=page_id)

```

Where you actually what page needs to be acted on. If you do not supply the pageId, then the function acts on the current page.

---

_[View the full topic](https://forum.inductiveautomation.com/t/is-the-pageid-unique/50722)._
