"Clemens Ortwickler" <er*****@gmx.at > writes:
Is it possible with JavaScript to prevent that a User is closing the
Internet Explorer? Because it is important for me that the User pushes the
cancel Button of this webapplication how can i do this?
You can't. Redesign your application.
Will clicking your cancel button make a difference if the user isn't
connected to the internet any more?
You can *try* using the window.onunload handler. However, that also
triggers if the user tries to navigate away from the window, so it's
not your best guess. You should also expect the page to disappear,
so don't start anything that takes time in the handler. If really
desperate, you can open a new window (but expect every popup-blocker
out there to try to stop it).
/L
--
Lasse Reichstein Nielsen -
lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
'Faith without judgement merely degrades the spirit divine.'