How to properly use postMessage to do cross-domain messaging with html5 and modern browsers ? I still get errors

后端 未结 2 1023
醉酒成梦
醉酒成梦 2021-01-13 18:10

I\'m sure something is wrong here but I can\'t quite put a finger on it... The example here behaves just fine with no notices or errors on the console, so it means my browse

相关标签:
2条回答
  • 2021-01-13 18:25

    I've just tried your code and this seems to work in Chrome. It uses jsfiddle and jsbin to pass messages between parent and child windows.

    http://jsbin.com/oxesef/4/edit#preview

    0 讨论(0)
  • 2021-01-13 18:25

    This is not the answer but could help you.

    I use http://easyxdm.net/wp/ to avoid that kind of problems.

    Carl

    0 讨论(0)
提交回复
热议问题