# Perspective - Browser - Event - Tab activated

**URL:** <https://forum.inductiveautomation.com/t/perspective-browser-event-tab-activated/74764>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [June 8, 2023, 1:36pm UTC](https://forum.inductiveautomation.com/t/perspective-browser-event-tab-activated/74764 "2023-06-08T13:36:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![luc.martin](https://avatars.discourse-cdn.com/v4/letter/l/77aa72/32.png) [@luc.martin](https://forum.inductiveautomation.com/u/luc.martin)\
**Post date:** [June 8, 2023, 1:36pm UTC](https://forum.inductiveautomation.com/t/perspective-browser-event-tab-activated/74764/1 "2023-06-08T13:36:19Z")

</div>

I'm on 8.1.22

Is there a trick to fired an event on a browser tab activated or on page got focus.

---

<div class="post-metadata">

**Author:** ![DNice](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@DNice](https://forum.inductiveautomation.com/u/DNice)\
**Post date:** [June 8, 2023, 2:46pm UTC](https://forum.inductiveautomation.com/t/perspective-browser-event-tab-activated/74764/2 "2023-06-08T14:46:42Z")

</div>

Maybe this can work: [system.util.getInactivitySeconds - Ignition User Manual 8.1 - Ignition Documentation](https://docs.inductiveautomation.com/display/DOC81/system.util.getInactivitySeconds)

---

<div class="post-metadata">

**Author:** ![luc.martin](https://avatars.discourse-cdn.com/v4/letter/l/77aa72/32.png) [@luc.martin](https://forum.inductiveautomation.com/u/luc.martin)\
**Post date:** [June 8, 2023, 2:53pm UTC](https://forum.inductiveautomation.com/t/perspective-browser-event-tab-activated/74764/3 "2023-06-08T14:53:39Z")

</div>

Don't think it can work because I want to fire a script when tab is activated and your solution also require something to fire the system.util.getInactivitySeconds

---

<div class="post-metadata">

**Author:** ![DNice](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@DNice](https://forum.inductiveautomation.com/u/DNice)\
**Post date:** [June 8, 2023, 3:26pm UTC](https://forum.inductiveautomation.com/t/perspective-browser-event-tab-activated/74764/4 "2023-06-08T15:26:09Z")

</div>

You can have a view param that is bound to the system.util.getInactivitySeconds value. When it gets reset (or current value \< previous value) you can trigger your logic.
