I want to display a popUP for responsive device users if they are going to close the browser or refresh the browser in their android or iOs devices. I tried using Window: beforeunload event function but this event function always display a standard message. Can I hide it and write my own custom message or POPUP ? Basically I want to show a popup when a user tries to close or refresh the browser in responsive iOS and android devices.
Any pointers in this regards will be very helpful.
Thank you