This may look weird, but you first create a reference to the named window using window.open (don't worry, it doesn't open a window if the name already exists). Then you close it:
Code:
open('','MyName').close();
Adam
There are only 10 types of people in the world: Those who understand binary, and those who don't
Yes, but only from the page that opened it. The variable "myWin" won't exist on other pages unless you create it and link it to the existing popup by using the "target" argument of window.open().
Code:
myWin = window.open('','MyName');
myWin.close();
This code basically does the same as my first post.
Adam
There are only 10 types of people in the world: Those who understand binary, and those who don't
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.