This is the setup:
I have two websites on two different domains:
www.website1.comwww.someotherwebsite.com
This is what I want to do:
-
When a user is on
www.website1.comand 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.
Well if you use an iframe in your pop up window [in this day in age I would avoid pop up windows like the plague due to pop up blockers]
With an iframe you can make cross domain calls
Why don’t you just develop a webservice from A to B and call it from A? Seems so much cleaner than finding small cracks in browsers to get around security.