EJB design: Capture event Alt F4(browser closing) from task bar in JSP page

  1. Hi, I have a code in which I am captureing browser closing event to end session variable. window.onbeforeunload = function(){ if((window.event.clientX right click ->close In this case the event(window.event) is not firing. Need help in this regard. Thanks, Reddy
  2. Try 'onUnload'- Thanks, Vinod http://blog.vinodsingh.com/