javascript - Creating a browser Exit popup -


what want detecting browser close event(on browser unload) , open new pop have options (give feedback, go page again , mail me report etc). @ same time want parent window alive till user select option in pop window. tried following , seems not working.

$(window).bind('beforeunload', function(event){         event.preventdefault();     }); 

please give me right direction achieving this.

you can alert/dialog

$(window).bind('beforeunload', function(event){     return "hold on minute there, conme , answer questions"; }); 

Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

image - ClassNotFoundException when add a prebuilt apk into system.img in android -