# onPageStartup or navigatedToPage event?

**URL:** <https://forum.inductiveautomation.com/t/onpagestartup-or-navigatedtopage-event/55998>\
**Category:** Ignition Early Access\
**Tags:** perspective\
**Created:** [February 10, 2022, 8:21pm UTC](https://forum.inductiveautomation.com/t/onpagestartup-or-navigatedtopage-event/55998 "2022-02-10T20:21:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gdube](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/gdube/32/41701_2.png) [@gdube](https://forum.inductiveautomation.com/u/gdube)\
**Post date:** [February 10, 2022, 8:21pm UTC](https://forum.inductiveautomation.com/t/onpagestartup-or-navigatedtopage-event/55998/1 "2022-02-10T20:21:01Z")

</div>

Could we have a global onPageStartup event applying for all pages, or perhaps a session navigatedToPage event? I’m looking for an event that is sent in both of these cases:

- User clicks on menu link
- User navigates to a page via external URL link, or directly modifying the URL address bar in his browser.

The onPageStartup of the session only fires once, when the Perspective app is loaded :s

---

<div class="post-metadata">

**Author:** ![Nick\_Havlicek](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nick_havlicek/32/36002_2.png) [@Nick\_Havlicek](https://forum.inductiveautomation.com/u/Nick_Havlicek)\
**Post date:** [November 30, 2022, 4:51pm UTC](https://forum.inductiveautomation.com/t/onpagestartup-or-navigatedtopage-event/55998/2 "2022-11-30T16:51:44Z")

</div>

I would love this so that I could close all active popups whenever the user navigates to a different page.

---

<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:** [November 30, 2022, 5:16pm UTC](https://forum.inductiveautomation.com/t/onpagestartup-or-navigatedtopage-event/55998/3 "2022-11-30T17:16:48Z")

</div>

I think the closest you can get is to use `onStartup` events on the views that can be primary in your pages. You would have to ensure you never navigated to a view that didn't have this configuration.
