I\'m in a Silverlight 4.0 project where we have a variety of windows and dialogs, some of which are modal.In the hosting HTML, we\'ve bound the onbeforeunload event so that we can warn users before th
I want to do some stuff when user is leaving a page, I add this code window.onbeforunload = function (e){
I need to make sure that when someone reloads or closes my page, their progress is saved. To save progress, I do a POST via XMLHttpRequest(), sending the data to server.
How would I go about having my application a开发者_如何学Cutomatically close an onbeforeunload prompt box that warns you before leaving the page?
This is the code which i used for window.onbeforeunload <head> <script> window.onbeforeunload = func;
This question already has answers here: Closed 11 years ago. Possible Duplicate: window.onb开发者_C百科eforeunload not working in chrome
I am using jquery onbeforeunload event in asp.net application. If i write event as given below then its working fine and display confirm dialog box.
I\'ve got an onbeforeunload event working that pops up a dialog box warning users about unsaved changes to a form when they navigate away.
I\'m trying to use the javascript onbeforeunload event to ask the user if they want to exit the page, but I don\'t want the event to fire (EDIT: \"the event\" being the dialog box that pops up asking
I\'m trying to perform a post query when the user leaves the page. The code I\'m working with is <script type=\"text/javascript\">