User closes out Internet Explorer, what to do? use onbeforeunload?
Posted on 2008-01-25
If a user closes out of Internet Explorer by using the X in the top right corner, how can I prompt the user and ask them if they want to save or cancel the transaction? If they want to save, I need to call a C# SaveValues() method, if they want to cancel, I need to call a C# RollBack() method. Is this possible? Do I need a pop up? I read dont use popups, because pop up blockers will cause them not to load.