i want to capture the close window event in javascript. How can i do. I don’t want to use OnUnload function.