posted 20 years ago
How do I pass a parent form value to a child form? I have the following code.
var newWin = window.open('getInfo.jsp','newWindow','height=200,width=500,location=no,toolbar=no,scrollbars=no,resizable=no,left=0,top=0');
newWin.document.childForm.personName.value = document.parentForm.personName.value;
The child window opens but the parent window has a JavaScript error: 'document.childForm.personName' is null or not an object. The parent value is not passed to the child.
What do you suggest?
Thanks for your time and help!
Tiffany