Solved

disable close button on web application

Posted on 2006-07-17
6
227 Views
Last Modified: 2012-05-05
Is there anyway to have a web application disable or grey out the close (X) in internet explorer.  We have a web application that get's screwed up if the user does use the logoff within the application.

is there anything that can be programmed into the web application that tells internet explorer to disable close?
0
Comment
Question by:ehrlichan
  • 2
6 Comments
 
LVL 23

Expert Comment

by:apresto
Comment Utility
Hi ehrlichan,

You could put some code in the onBeforeUnload event of the body tag,

you could open a pop up in this event and carry out your log off procedure:

<body onbeforeunload="window.open('FinalLogout.asp');">

Apresto
0
 
LVL 23

Accepted Solution

by:
apresto earned 250 total points
Comment Utility
and in finallogout.aspx you could have the code to log them off, then you could have the pop up close itself when its finished:

self.close();
0
 
LVL 2

Assisted Solution

by:msoms
msoms earned 250 total points
Comment Utility
what apresto  said seems to be a good idea...

you can use another tool instead of internet explorer, for example you can program a tool that does the login process and you can control this tool as you like. Within this tool you can use Internet Browser to run your application and whenever the user tries to kill the tool you can prevent him or ask him to logout normally.

hope this helps.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Uploading files to the web server has become common part of almost any kind of web application. People use different technologies to solve this, but regardless of the technology used, it is always useful to have some kind of progress indicator shown…
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now