Solved

disable close button on web application

Posted on 2006-07-17
6
236 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 
LVL 23

Expert Comment

by:apresto
ID: 17122602
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
ID: 17122620
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
ID: 17128285
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

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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…

717 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