PDA

View Full Version : Close Parent Window after child window opens



macknairb
08-03-2005, 02:33 AM
Can someone direct me to a javascript code that will cause the parent window to close once the child window opens? I have found one, but it contains a nag window that requests permission to close the window. I want the parent window to close.

Can anyone help?

jscheuer1
08-03-2005, 03:07 AM
After the code on the parent page that opens the child window put:

window.opener='self';
window.close();

IE only.