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

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -