This is the setup:
I have two websites on two different domains:
www.website1.com
www.someotherwebsite.com
This is what I want to do:
When a user is on
www.website1.com
and clicks a link, I want a window to popup showingwww.someotherwebsite.com
.When the user clicks a button in the popup window (showing
www.someotherwebsite.com
) I want that window to close and have a value returned.I want the value returned from the popup window to be placed (into a div, or into a javascript call, or someplace accessible such as filling out a form field) on
www.website1.com
.
I hope that makes sense. I need to use just HTML and Javascript without external libraries. It also must work on current mainstream browsers (i.e. not be an HTML5 thing).
Thank you in advance for your help.