Click to See Complete Forum and Search --> : Closing the previous window


Brian.Ladish
11-29-2002, 12:24 PM
I have a webpage that has a javascript functin that opens a new window(page). What I am wanting to do is to close the original window either when the button is clicked or after the new window(page) opens. I tried adding an additional function to the same button, but I receive a message stating "The Web page you are viewing is trying to close the window." with a Yes or No prompt. I want the window to close without user intervection. please advise.

gil davis
11-29-2002, 01:43 PM
It's a security issue. You are not allowed to close a window using javascript that you did not originally open using javascript "window.open()" method.

cxema
11-29-2002, 01:50 PM
However, AFAIK it only happens once during the session.