Paul, Both are working simultaneously. But the new window is activated first, then it's trying to close the window.
"Paul Larue" wrote : > Sorry kishore but I did not get your point here. Could you be clearer > please? > > By the way... *NEVER* use onclick with a submit button, use a normal > button and fire the submit event from there. You never know what is > going to be executed first, your JS code or form submission. > > Paul > > > -----Original Message----- > > From: Kishore Kumar. G [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, August 13, 2003 1:51 PM > > To: [EMAIL PROTECTED] > > Subject: [wdvltalk] Opening a new window > > Importance: High > > > > > > Hi all, > > > > I am using the following script to > > > > 1. open a new window (with all hidden values of the parent > > form) when the user clicks the submit button, 2. the parent > > window should be closed at the same time. > > > > It works fine in IE, but both the windows disappear in Netscape. > > > > Thanks in advance, > > > > Regards > > kishore > > -------------------------------------------------------------- > > <script language="JavaScript"> > > function openwindow() > > { > > parent.window.close() > > } > > </script> > > > > <form name="main" method="post" action="main.asp" target="_blank"> > > <-----all hidden fields approx. 40 values-------------> > > <input type="submit" name="submitbt" value="Submit" > > onclick="openwindow()"> </form> > > -------------------------------------------------------------- ____ � The WDVL Discussion List from WDVL.COM � ____ To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To set a personal password send an email to [EMAIL PROTECTED] with the words: "set WDVLTALK pw=yourpassword" in the body of the email. To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub ________________ http://www.wdvl.com _______________________ You are currently subscribed to wdvltalk as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]
