Closing Window Without Window.open();
Is there any way to close a new tab window that was not opened using window.open();?
Solution 1:
No. If you didn't open the window you are not supposed to close it.
Solution 2:
Please see here: http://www.infimum.dk/HTML/JSwindows.html#ref_3_11
In order to close a specific window using the window.close() method you need a reference to that window, which you can usually get when opening a window using the window.open() method.
Another option I can see is to use global window/frame references (self, parent, opener, etc...You can see the list in the link above as well).
Post a Comment for "Closing Window Without Window.open();"