locked
postMessage not working in some IE RRS feed

  • Question

  • I have the following code to send post message and its working in my laptop's IE  11 but some others' IE 11 :

    I don't see any error or any message in the console ?!

    function sendMessagetoGeoCortext(data) {    var gxeWindow = document.getElementsByName("gxe-frame");    if (gxeWindow && gxeWindow.length > 0) {      let gxePostMsgUrl = gxeWindow[0].src;      console.log('gxePostMsgUrl:' + gxePostMsgUrl);      gxeWindow[0].contentWindow.postMessage(data, gxePostMsgUrl);    }  }

    My IE version is :

    Where as one of the machine where it fails has:

     
    Thursday, October 8, 2020 2:13 AM