jQuery beforeunload custom pop up window for leaving a page
Short answer: You can’t. Longer answer: For rather obvious “security” reasons it is very limited what you can do when a user tries to navigate away from a page / close a tab or in any other way leave the site. The reason is that browsers want to make absolutely sure that you cannot prevent … Read more