Is there a way to trigger a JSP program by click close icon of a window?
843833Aug 2 2001 — edited Aug 3 2001I am currently working on a JSP/JavaScript program: there are two interfaces. In the first interface, when the user choose "search by building" under search menu, the second window will be opened by using JavaaScript Window.open() method. There are two buttons on this new window, when the user click "Search" button, a file will be generated on the web server and a Save As... dialogue will be pumped up. The best way I could know is to delete this generated file on the server when the user click the close icon on the right cornor of the window. But, how to do this using JSP or JavaScript?