Question
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Cognizant technology solutions
GB
Last activity: 28 Mar 2019 9:07 EDT
JavaScript required to detect browser/tab close event (Pega 7.4)
Hi All,
We need a JavaScript to detect browser close event, since need to update/persist the data's to external system on window/tab close.
We tried using onbeforeunload function, but the problem here is onbeforeunload is triggering on both window/tab close and window refresh.
We are using Pega 7.4.
Thanks in Advance.