Execute script upon navigating back to a page

I need to execute a script when someone navigates back to a page when they have navigated to a page within my site. In this situation, the second page will modify an item in local storage as in Web Storage (Second Edition). Then after the item has been modified in the second page, if the first page is returned (navigated) to using a back button or something like that then the first page needs to execute a script. All the events I can find will execute in the second page; the page being navigated from.

I have tried using the storage event but apparently it would apply only if the pages were on separate tabs.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.