Off the top of my head, you should be able to do a window.open() using the name 'Window1' from within javascript in Window2, which will return the window object of Window1. You should then be able to do a close() on the onject. Along the lines of:
Thanks for the response, Barbie. However, I must be overlooking something. When I use your code, I open and close a new window. I would like an existing window to close. Could I be missing a step? Thanks!
If the window 'Window1' already exists, another window does not open, instead the object myWin takes on the identity of the existing window. So if you then close the object myWin, it's the existing window which is closed.
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.