I want to dynamically set some attributes in an IFrame (like textAlign). I keep getting "undefined" for all the different things I try. When I inspect the element, it seems as though I should be able to access the html > body tag from the iFrame object, but that is not the case:var myIFrame = document.getElementById("myIFrame");
alert(myIFrame.childNodes); //Expecting "Html Node", getting "undefined"
myIFrame.style.textAlign = "right";
//this does nothing
View Complete Post