postMessage still broken on IE11?

后端 未结 4 1227
春和景丽
春和景丽 2020-12-02 15:02

It seems that window.postMessage is still broken on IE 11 when the message is

  • between a window and a child popup/tab with window.open
  • when it\'s sent
4条回答
  •  广开言路
    2020-12-02 15:18

    I found, if I launch another window, launch my window, then close the other window, then I can work with my window just fine.

    vvWindow0 = window.open("http://apsed4065:8047/virtualviewer/index.html");
    vvWindow = window.open("http://apsed4065:8047/virtualviewer/index.html");
    vvWindow0.close(); 
    
    vvWindow.postMessage(message, 'http://apsed4065:8047');

提交回复
热议问题