?
Solved

disable close button on web application

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

WordPress Tutorial 2: Terminology

An important part of learning any new piece of software is understanding the terminology it uses. Thankfully WordPress uses fairly simple names for everything that make it easy to start using the software.

Question has a verified solution.

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

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses

752 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