# Perspective script/action on page refresh or view save

**URL:** <https://forum.inductiveautomation.com/t/perspective-script-action-on-page-refresh-or-view-save/39171>\
**Category:** Ignition\
**Tags:** ignition80, perspective\
**Created:** [September 29, 2020, 10:28am UTC](https://forum.inductiveautomation.com/t/perspective-script-action-on-page-refresh-or-view-save/39171 "2020-09-29T10:28:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcarritt1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mcarritt1/32/4262_2.png) [@mcarritt1](https://forum.inductiveautomation.com/u/mcarritt1)\
**Post date:** [September 29, 2020, 10:28am UTC](https://forum.inductiveautomation.com/t/perspective-script-action-on-page-refresh-or-view-save/39171/1 "2020-09-29T10:28:33Z")

</div>

Is there any way to detect, or act upon a page refresh? The view startup script doesn’t appear to run on a page refresh.

Additionally it would be super nice to somehow run an action if a save is made to a view and it gets refreshed. Currently I’m doing all my development on a separate non-live view, and periodically replacing the live view with it to avoid things breaking because of a view update.

---

<div class="post-metadata">

**Author:** ![mcarritt1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mcarritt1/32/4262_2.png) [@mcarritt1](https://forum.inductiveautomation.com/u/mcarritt1)\
**Post date:** [September 29, 2020, 3:09pm UTC](https://forum.inductiveautomation.com/t/perspective-script-action-on-page-refresh-or-view-save/39171/2 "2020-09-29T15:09:35Z")

</div>

I think maybe running a onStartup Script Action on one of the components may do the trick, it looks like it does trigger when I refresh the page. Components restart but maybe not the view?

---

<div class="post-metadata">

**Author:** ![Subbarao.B](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@Subbarao.B](https://forum.inductiveautomation.com/u/Subbarao.B)\
**Post date:** [December 21, 2020, 5:36pm UTC](https://forum.inductiveautomation.com/t/perspective-script-action-on-page-refresh-or-view-save/39171/3 "2020-12-21T17:36:55Z")

</div>

Yes , you are right ,( Need to refresh the view )…  
1.suppose in carousel component .i am moving one view to another view(using acitvePane0 … at the last view once done my process, i am moving to 1st (activePane). that time my previously entered data is need to refresh.  
how to do it.
