472,358 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,358 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 1988
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...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
1
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...

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.