Link to home
Start Free TrialLog in
Avatar of Silas2
Silas2

asked on

Internet Explorer closing event -catching in JavaScript

Is there a way of catching a form_unload a type of event for Internet Explorer, with a cancel= true type of parameter?
I mean when  a form/IE is exiting without saving, it gives you a chance to ask the user to confirm " Exit without saving?"
Avatar of imitchie
imitchie
Flag of New Zealand image

window.onclose?
Avatar of Michel Plungjan
Nope. onClose does not exist.


You are looking for
<body onBeforeUnload="returnValue='Please don\'t go'">
SOLUTION
Avatar of rallsaldo
rallsaldo

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
ASKER CERTIFIED 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