Using JS or jquery I need to get the height of the html page that is the src
of an iframe. This is what I have and it is not returning a value.
var iFrameID = document.getElementById('myframe');
iFrameID.height = iFrameID.contentWindow.document.body.scrollHeight;
Yes, I am trying to set the height of my iframe this way (the common problem of resizing the iframe based on content). I just know that the iFrameID.contentWindow.document.body.scrollHeight
is not giving me a height value for the source page. This problem does not happen in Firefox.
EDIT: This is for offline use. I don't know if that makes any difference.