473,386 Members | 1,886 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

ASP.NET - way to override exit buton event in browser?

In my application, sometimes users accidentally click the "exit" button in the far right corner of the browser window and lose all of their unsaved work. Is there a way to prevent the window from automatically closing, and instead prompt the user if we wants to actually close it?
Aug 16 '07 #1
1 2028
jhardman
3,406 Expert 2GB
In my application, sometimes users accidentally click the "exit" button in the far right corner of the browser window and lose all of their unsaved work. Is there a way to prevent the window from automatically closing, and instead prompt the user if we wants to actually close it?
not that I know of. But you can get their data saved before then so it isn't lost when they exit inadvertantly.

Jared
Aug 17 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: deepak | last post by:
I am using the code below to implement 1 time entry and exit popup. The entry popup works fine, but the exit popup opens even if you browse from one page to the other on the same site. I want it to...
4
by: Rithish Saralaya | last post by:
Does the tab key override the onblur event? I have a text field whose input I validate on blur, and set the focus back again if invalid. Effectively, I do not want the user to move out of the...
14
by: JPRoot | last post by:
Hi I use the following syntax to have events inherited from base to child classes which works nicely (virtual and override keyword on events). But I am wondering if it is a "supported" way of using...
8
by: JPRoot | last post by:
Hi M. Jeffrey Tan, Just hopping you didn't forget me? :) Thanks JPRoot ----- \"Jeffrey Tan\" wrote: -----
3
by: Jaco Bregman | last post by:
Hi all, I have been trying to save some user settings when my web application closes, but with little success. What I want to do is start a counter on startup, and write the total count to a...
5
by: Andrew | last post by:
Hi, Is there a javascript code to capture the browser's refresh button click event ? I know that I can handle that event with some c# code, but I was just wondering if that can be done using...
12
by: Flashster | last post by:
I have an exit routine that runs when a users selects 'exit' from a menu or closes the form by clicking on the 'X' in the top right of the form (on the controlbox). One option in the exit...
2
by: Vinnie123 | last post by:
In my application, sometimes users accidentally click the "exit" button in the far right corner of the browser window and lose all of their unsaved work. Is there a way to prevent the window from...
3
by: | last post by:
Hi, I'm programming in asp.net. I have controls in pages and pages in masterpages. I would like to use onLoad event when control/page/masterpage is loading. How to add page load event in page...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.