I have an iframe and I am trying to resize it based on its actual content (like so I dont get any scrolling). I have tried the following:
alert(document.getElementById(iframe).contentWindow.document.body.height); alert(document.getElementById(iframe).contentWindow.document.body.scrollHeight); alert(document.getElementById(iframe).contentWindow.document.body.offsetHeight);
None of those work. iframe contains the id of the iframe. The last two lines work in Chrome.
Any help would be really appreciated.