's document editable:
So if one big page sets #iframe.height = '620px', and someone clicks on a link to page with less content scrollHeight will remain at 620px instead of decreasing.
Do extremely high-voltage power lines emit positrons? How to get height of PDF document load in iframe, “Body Onload” to send “ScrollHeight” not working properly in Chrome and Safari, Resizing an iFrame to fit contents by obtaining the scrollHeight (javascript), Dynamically resizing iframe not working in chrome, JavaScript behaving differently in each browser, jQuery/JavaScript: accessing contents of an iframe. In Chrome I can make the iframe bigger, but not smaller. document.body.scrollHeight is always the biggest value. your coworkers to find and share information. If you need an accurate fractional value, use Element.getBoundingClientRect() instead. Stack Overflow for Teams is a private, secure spot for you and
In Chrome I can make the iframe bigger, but not smaller. CSS: How do I auto-resize an image to fit a 'div' container? In chrome, document.body.scrollHeight does this. Making statements based on opinion; back them up with references or personal experience. Thanks for contributing an answer to Stack Overflow! How do I disable the resizable property of a textarea? The Document.body property represents the