Link to home
Start Free TrialLog in
Avatar of dlzone
dlzone

asked on

Passing values from child to parent

Hello,
I have a simple form with a textarea and a button. When the button is pressed, a window pops up that contains an input box and an another textarea. When the button inside the pop up window is pressed, the value from the child textarea is passed back to the parent textarea.

The question is, how do I pass the value in the child input box and just store it in a variable inside the parent window?
Avatar of dlzone
dlzone

ASKER

On a side note, is there a command in javascript to open a word document?
you can write in child window button declaration: onclick="document.parent.form_name.textarea_name.value = document.child_form_name.child_textarea_name.value" is that i understood?
ASKER CERTIFIED SOLUTION
Avatar of suji17
suji17
Flag of Afghanistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dlzone

ASKER

Thanks for the quick response.
Any idea on the word document question?
hi guys,
is there any way i can pass the multiple-selected checbox value from child to parent?

i was thinking of an array to pass multiple values from child and iterate the return values in parent (and store it in the text box).
Appreciate any valueable inputs.

I would to store the return values in comma delimited format