Lets assume that you open a pop up from a main window that contains a form:
Code:
<form name="mainForm">
<input name="formElementName" type="text" value="">
...
</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:
Code:
opener.document.mainForm.formElementName.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:
Code:
<body onLoad="self.document.childForm.childFormElement.value = opener.document.mainForm.formElement.value;">
<form name="childForm">
<input name="childFormElement" type="text" value="">
...
</form>
Depending on the browser you are using, this method should work.
You can find a lot of information about the Window Object at:
http://developer.netscape.com/docs/...jsref/index.htm
[Edited by estrabd on 02-13-2001 at 08:35 AM]