HELP: Change object height to fit contents
Hi. I am trying to use the html object tag as an iframe so that I can validate with xhtml 1.0 strict. I have gotten the object to load my page successfully in every browser that I have tested, but I cannot figure out how to use javascript to set the object to the right height to avoid scroll bars.
The code to do this for an iframe is something like:
f.style.height = f.contentWindow.document.body.scrollHeight + 'px';
where f is the iframe ref.
I am trying to mimic the above with an object. Is this possible?