I would like to show a custom popup on page reload/refresh. I am using jQuery beforeunload
event for this and its working. The issue is, it always showing default Page reload confirm popup before triggering my custom popup. Is there any way to disable browser default confirm popup ?
I am using the following code.
jQuery(window).bind('beforeunload', function(e) {
e.preventDefault();
showPageloadPopup();
return false;
});
Any help and suggestions will be highly appreciable. Thanks.