Link to home
Start Free TrialLog in
Avatar of ehrlichan
ehrlichan

asked on

disable close button on web application

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?
Avatar of apresto
apresto
Flag of Italy image

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
ASKER CERTIFIED SOLUTION
Avatar of apresto
apresto
Flag of Italy image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial