Click to See Complete Forum and Search --> : Closing Window


JJTitus
12-03-2002, 08:18 AM
Ok, I have one html popup a window to another HTML file. How do I make it automatically close the first HTML file when the 2nd one is opened up? Thanks

Jonathan

Charles
12-03-2002, 12:33 PM
You don't. It's a security feature of JavaScript that it can only close a window that it opened.

JJTitus
12-03-2002, 03:10 PM
Oh ok. Guess I'll just have to live with it. Thanks

mr foo
12-04-2002, 12:13 AM
i had this problem too, and what you can do is at the window.close script into the origanal window so there is no security problem :)