tso11
asked on
Passing values between parent and popup using Javascript
I am trying to do the following using Javascript, and I was hoping someone might be able to provide basic code (using two html pages and javascript functions) to accomplish it:
1) Use HTML form to collect a parameter or two from user
2) Pass that data to Popup window
3) Display that data in the popup window
4) Write something (i.e. "Successful") to parent window when user clicks button on popup (and close popup as well).
Thanks!
1) Use HTML form to collect a parameter or two from user
2) Pass that data to Popup window
3) Display that data in the popup window
4) Write something (i.e. "Successful") to parent window when user clicks button on popup (and close popup as well).
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Worked perfect! Thanks!
This is how i did it... It works on most browsers.
This is how i changed values of fields in parent windows, based on input in child popup
You can send data to child via GET parameters with PHP, or program the child popup to collect the data as shown below from the parent onload.
Open in new window