mhamilton3
Programmer
- Oct 31, 2001
- 129
Hello,
I have had this reoccurring problem that I have several solutions to, but none seem to work in all cases. I have instances where a parent opens a child. The child gathers some information and returns back to the parent. The problem I run into is with closing the child.
What I want to do is the following:
function callsubmitadd() {
document.addform.target = 'parentWindow';
document.addform.submit();
window.close();
}
That solution does not seem to work on the Mac (OS X with IE 5.2). The child at this point just hangs going back. Is there simple way to close an html form upon submit of a form? Thanks.
I have had this reoccurring problem that I have several solutions to, but none seem to work in all cases. I have instances where a parent opens a child. The child gathers some information and returns back to the parent. The problem I run into is with closing the child.
What I want to do is the following:
function callsubmitadd() {
document.addform.target = 'parentWindow';
document.addform.submit();
window.close();
}
That solution does not seem to work on the Mac (OS X with IE 5.2). The child at this point just hangs going back. Is there simple way to close an html form upon submit of a form? Thanks.