Using TypeScript I am trying to implement cross domain communication as mentioned in this thread
My code is as follows:
 var iframeElement = document.getElementById("myIframe");
 iframeElement.document.contentWindow.postMessage('hello', '*');
but in the 2nd line after document I am not getting the handle for contentwindow.
Can someone provide the solution?
 
     
    