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);
}