Question
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-08/ef69651d-5c2a-46e8-aee2-6ad474f73db6.png?h=b6be84b4&itok=Cx2phisk)
GovCIO
US
Last activity: 14 Jul 2020 19:31 EDT
How to detect the browser’s close button in browser tab?
Hi,
I have a non Pega application launching a Pega application from any browser but they both are running in 2 different tabs of same session. Now I want to close the Pega application from the browser tab using “X” button but I want to make a server call while closing the browser tab. Tried all possible ways mentioned in the PDN and tried with HTML/JS but no luck. First of all, I am unable to detect the browser’s “X” button. Can any of the experts pls help me? Pls don’t post/show any existing PDN articles in this discussion since I did check end to end in PDN site. Pls help me for those who got successful in this don’t context. That way the time will be saved for both of us.
Thanks,
Ravi Kumar.
***Edited by Moderator: Pallavi to update platform capability tags***