I need to perform some DB operation when Browser Close or Tab Close button is clicked.
If I use onbeforeunload event then its working but the problem is when I clicked Browser Reload button the event is also firing.
So how to identify which browser button is clicked and how to perform this operation.

Suraj KumarRank #353 · 7.1K reputationPosted Oct 29, 2018, 7:35 PM EDT
Rakesh Tripathy15 reputationPosted Oct 29, 2018, 7:47 PM EDT