javascript - Disable default beforeunload dialog -


i show custom popup on page reload/refresh. using jquery beforeunload event , working. issue is, showing default page reload confirm popup before triggering custom popup. there way disable browser default confirm popup ? using following code.

jquery(window).bind('beforeunload', function(e) {     e.preventdefault();     showpageloadpopup();     return false;  }); 

any , suggestions highly appreciable. thanks.


Comments

Popular posts from this blog

android - Inheriting from Theme.AppCompat* -

broadcastreceiver - android BOOT_COMPLETED not received if not activity intent-filter -

basic authentication with http post params android -