why not use "target" in the form of the main window... eg. using the javascript open a blank window then submit the form to the new window. an u can get the data in the new window using the request object..
the code function OnclickOfButtonopenPopup() { var win = window.open('' , "nameof_window" , "all your properties"); // name of the window should be same document.form1.target = "nameof_window"; document.form1.submit(); } in the form of the main window write <input type =button name ="open" value = "as you like" onclick = "OnclickOfButtonopenPopup()" > do let me know the results. Cheers guru -----Original Message----- From: Dick Wong [mailto:[EMAIL PROTECTED]] Sent: 05 October 2001 09:59 To: [EMAIL PROTECTED] Subject: Help on retrieve value if there is a button in form1. If I press it, it open a new window (form2). How can I retrieve the text field called "IDText" in form1 and display it on form2 ?? I tried to: alert( document.form1.IDText.value ) but nothing to be display ..... Help. Regards, Dick Wong ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html