View Full Version : Capture Close Event
chxxangie
Dec 3rd 2007, 6:09 pm
when user press on X close button to close the current browser window, then pop up a msgbox.
but how to capture the close event?
i try unload in HTML, but is wrong... :(
please help me...thanks........
hrcerqueira
Dec 4th 2007, 4:04 am
Try this:
http://www.velocityreviews.com/forums/t112672-capture-click-event-of-the-quotxquot-button-on-the-browser-window.html
joebert
Dec 5th 2007, 12:01 am
I believe window.onunload is valid too.
hrcerqueira
Dec 6th 2007, 3:41 am
window.onunload will capture everything, including if you click on a link and move between pages
joebert
Dec 6th 2007, 5:59 am
Good catch hr.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.