As I recall, you can't access the DOM of an iframe's source unless it's from the same domain.
So, provided the parent/iframe are on the same domain you'll want the iframe's contentWindow
property... from which you can retrieve the document.
var frame = document.getElementById("fre");
var frameDoc = frame.contentWindow.document;
frame.style.height = frameDoc.getElementById("childElementId").style.height;
See HTMLIframeElement.contentWindow
. Depending upon your browser, you may have a contentDocument
property in lieu of contentWindow
.
Post a Comment for "How Do I Select The Child Of This Iframe?"