February 13th, 2001, 01:52 AM
the value need to be pass to the text field of the form value!
The child window is open when a link in the main window is click and it pop_up the child window.
February 13th, 2001, 10:16 AM
Lets assume that you open a pop up from a main window that contains a form:
The form on the main window can be accessed by the pop up window by simply calling the value of the main form element you want to carry over in this manner:
<input name="formElementName" type="text" value="">
follows the standard hierarchy:
window.document.form.formElement.[property or method]
This would go in the pop up window of course. It would need to be used on an "onLoad" event in the body tag, and it would look something like this:
Depending on the browser you are using, this method should work.
<body onLoad="self.document.childForm.childFormElement.value = opener.document.mainForm.formElement.value;">
<input name="childFormElement" type="text" value="">
You can find a lot of information about the Window Object at:
[Edited by estrabd on 02-13-2001 at 08:35 AM]