You need to sign in to do that
Don't have an account?
pDaisies
window.close(); Help?
Can someone tell me how to close a window that was generated with SCONTROL. I know how to call window.close(); but it appears to be overridden or something. I'd like to be able to create a pop up like the calender tool and close onClick with a button on the generated page. Help?
This button would have to be located on the pop up, as you said... if you wanted to close the window from the parent window, that's possible as well.
Code:
And please keep in mind that firefox only closes a window with the window.close method if the new window was open with a window.open method. I believe this is a security setting you can change but out of the box firefox is set up like that.
Message Edited by mikef on 01-18-2007 08:46 AM
I'll try these things later. Thanks for the help.
window.opener = self;
window.close();
Firefox has a known issue with window.close();
The error you will get in the console is:
"Scripts may not close windows that were not opened by script."
I think IE has the security bug not the other way around.