0

I am having a problem with editing the iframe of SendGrid.I tried the following code

 function getIframeContent(frameID) {
        var frameObj = document.getElementById(frameID);

       var frameContent = frameObj.contentWindow.document.body.innerHTML;

        alert("frame content : " + frameContent);
    }
mint
  • 21
  • 1
  • Does this answer your question? [SecurityError: Blocked a frame with origin from accessing a cross-origin frame](https://stackoverflow.com/questions/25098021/securityerror-blocked-a-frame-with-origin-from-accessing-a-cross-origin-frame) – Jasper B Aug 16 '21 at 09:57

0 Answers0