I have tried many methods to detect browser close event through jQuery or JavaScript. But, unfortunately, I have not been able to detect the close. The onbeforeunload<
onbeforeunload<
Please try this code, this is working fine for me. This custom message is coming into Chrome browser but in Mozilla this message is not showing.