[LON-CAPA-dev] javascript question?
H. K. Ng
lon-capa-dev@mail.lon-capa.org
Fri, 14 Mar 2003 13:32:53 -0500
I have a window opened by the parent window. On the new window I have a
form and when I submit the form, the display should go back to the parent
window. At the same time, I want to close the new window. The two lines of
codes in javascript
document.formname.submit(); //note the formname is targeted to the parent
window
self.close();
seems to work with IE and mozilla. But it does not work with netscape. In
netscape, it closes the new window and doesn't do anything, ie, it seems
the new window is closed before the form is submitted.
Any ideas how to make work on netscape?
Thanks,
hk