Hi Sandeep
you need to use the onbeforeunload event, which fires right before onunload. You can get the user to confirm, by simply setting event.returnValue to the text you want to use. So something like:
<BODY onbeforeunload="event.returnValue='Are you sure?'">
I could only get this to work in internet explorer tho.
Hope this helps
Philip Cole
|