This is the setting:
I have two websites in two different domains:
www.website1.comwww.someotherwebsite.com
This is what I want to do:
When the user is on www.website1.comand clicks on the link, I want the popup to show www.someotherwebsite.com.
When the user clicks a button in a popup window (showing www.someotherwebsite.com), I want this window to close and the return value.
I want the value to be returned from a popup that needs to be placed (in a div, or in a javascript call, or somewhere accessible, for example, filling out a form field) on www.website1.com.
Hope this makes sense. I need to use only HTML and Javascript without external libraries. It should also work with current major browsers (i.e. Do not be HTML5).
Thank you in advance for your help.
source
share