Hi Window.onclose works with only IE. However, you can try unload event. Refer the code snippet below function onClose() {
alert("Warning. You are closing the app!") //do cleanup operations } window.onunload=onClose Kind regards, Rakesh Bhat PrimeSourcing(tm) The Global IT Services business from i-flex - "Add Value Reduce Risk" www.iflexsolutions.com/services/services.asp i-flex solutions limited - Bangalore Phone : +91(080) 5759-6873 Email : Rakesh.Bhat@ iflexsolutions.com -----Original Message----- From: Meenakshi Singh [mailto:[EMAIL PROTECTED] Sent: Thursday, January 19, 2006 11:42 AM To: Struts Users Mailing List (E-mail) Subject: Urgent help needed Hi, Can anybody tell me how can I detect the browser's close button. & which works across all browsers. I have a requirement wherein I have to perform some steps if the browser window is closed. Some code example would be appreciated. Please help me it's urgent. Thanks & Regards, Meenakshi. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]