?
Solved

disable close button on web application

Posted on 2006-07-17
6
Medium Priority
?
243 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
3 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 1000 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 1000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
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…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses
Course of the Month16 days, 16 hours left to enroll

864 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