# Open Popup From Session Startup Script

**URL:** <https://forum.inductiveautomation.com/t/open-popup-from-session-startup-script/111796>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [October 29, 2025, 5:57pm UTC](https://forum.inductiveautomation.com/t/open-popup-from-session-startup-script/111796 "2025-10-29T17:57:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Slick](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@Slick](https://forum.inductiveautomation.com/u/Slick)\
**Post date:** [October 29, 2025, 5:57pm UTC](https://forum.inductiveautomation.com/t/open-popup-from-session-startup-script/111796/1 "2025-10-29T17:57:01Z")

</div>

Hello,

Is it possible to open a popup from a Session Startup script? When I try, I get the error message stating:

Error running session.onStartup(session): … **No perspective page attached to this thread.**

I checked if a page exists during the run of the startup script:

`logger.info('page id ' + str(session.getPage(session.props.id)))`

Which returns None:

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/0/3018d9067f0ccc050a1d61fcc58109577616221b.png)

Is there a work around to this? Thank you.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 29, 2025, 5:59pm UTC](https://forum.inductiveautomation.com/t/open-popup-from-session-startup-script/111796/2 "2025-10-29T17:59:22Z")

</div>

> [@Slick](#):
>
> possible to open a popup from a Session Startup script?

No, that event runs before the page exists.

I recommend using a shared docked view with a startup script to do such things.

---

<div class="post-metadata">

**Author:** ![Nol](https://avatars.discourse-cdn.com/v4/letter/n/8e8cbc/32.png) [@Nol](https://forum.inductiveautomation.com/u/Nol)\
**Post date:** [October 29, 2025, 6:24pm UTC](https://forum.inductiveautomation.com/t/open-popup-from-session-startup-script/111796/3 "2025-10-29T18:24:24Z")

</div>

If you have any menu or dock then put it on the startup event of that object and it’ll work.
