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

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -