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
Post a Comment