Click to See Complete Forum and Search --> : Urgent : How to catch x button pressed event using java script


jim_cool
September 27th, 2005, 06:51 AM
hi all

i want to catch the event when user clicks on cross button of window to close it.

other than on unload is there any method that works?

plz reply soon

PeejAvery
September 27th, 2005, 11:38 AM
Cannot be done with JavaScript. It can be done by capturing window messages so I would imagine that ActiveX or VBScript could do it.