Is there a way to identify browser back button and browser close button event differently?
Asked
Active
Viewed 92 times
0
-
Do you want to identify that they have been clicked? ie the event has happened? – Rob Anthony Nov 04 '17 at 07:22
-
yes, but where? you have some code to show us? – Gowtham Shiva Nov 04 '17 at 07:22
-
Why do you need to distinguish them? They both leave the current page. – Barmar Nov 04 '17 at 07:25
-
Yes, need to identify that they have been clicked. Because I have to logout the user from application if he closes the browser but not on clicking back button and also I cant disable the back button. – Monika Gonnade Nov 04 '17 at 13:53