Question Locked
0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
In my ASP .Net web application, the customer has the following requirement. Whenever user tries to close the browser by using the X at the top (the hard close), I want to throw a message popup to user saying that they have not logged out of the application. Are you sure to close? And I want to give them Yes/No options so that if they click on yes, I will let them close otherwise the browser stays open. How can I acheive this?
3 replies
by anupamap5 Accepted solution
Clarifications
by Former member Accepted solution
http://forums.asp.net/p/923931/1067703.aspx
Please post back if you have any more problems or questions.
by robo_dev Accepted solution
The only way you could do this (maybe)
would be to run IE in 'kiosk mode' which takes away all user controls, and FAKE the Windows control buttons on the border of the Window (kiosk mode takes away the buttons).
iexplore -k www.your_app_here.com
unfortuantely the user can still alt-F4 out.
While you CAN, close the browser, you cannot programmatically prevent the user from doing so, AFAIK.
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending
1 helpful
3 replies
Discussion Locked
What Makes a Business Website Effective in 2026
2 helpful
10 replies
Question Unanswered
Best Way to Make Long WordPress Location Guides Mobile Friendly
0 helpful
0 replies
Question
Windows and macOS computers becoming slow or unstable after updates - what should I check first
0 helpful
1 reply
Discussion
Optimizing WordPress widgets and DOM size
0 helpful
3 replies