Cross-domain JavaScript code with sibling sub-domains

后端 未结 2 1880
既然无缘
既然无缘 2021-01-06 00:22

I have two web applications setups:

david.example.com and john.example.com

David opens a new window to John:



        
2条回答
  •  没有蜡笔的小新
    2021-01-06 00:48

    You can always use iframes for cross domain communication and send messages via the hashbangs. See this for an example. It's basically the workings of stuff like Facebook connect. If one app opens the other window I'm guessing you can do that with normal windows as well.

提交回复
热议问题