I've found that just putting window.close() or self.close() in the generation script in window 1 works ok with one problem; Javascript will put up a requester asking the user for permission to close the window if the first window wasn't generated by javascript. Here's an example from a project...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.