Solved

disable close button on web application

Posted on 2006-07-17
6
233 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
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
This video teaches users how to migrate an existing Wordpress website to a new domain.

776 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