I am facing the problem to logout my page. I calls the logout method from the tag of the page like this
<body onbeforeunload="beforeLogout();" onUnload="logout('/ruxamod/faces/zzrucmpvhs1.xhtml?logout=t');" onclick="hideDescFrame();">
but I have no idea how to trap the window close button is clicked because all these methods are call when user refresh the page.
Thanks
http://stackoverflow.com/questions/5367232/detect-close-window-event-in-firefox – Jan S Sep 07 '11 at 07:47