I have a window that will be closed by a user. When that window is closed, I want a little tiny window to open, delete a temporary file, and close. I know how to do the deleting the temporary file and closing the little window part, but I don't know how to check to see if the big window was closed, and open the little window. How do I go about doing this?
EDIT: I forgot the most important part. I know it is easy to do with a "Close Link", but I need it to work when a user clicks the little x to close it. Also, this should not be extreamly dificult because the user can not go to another url in that window because there is no address bar, no file menu or anything.