I'm attempting to embed a website within another website using an Iframe. I've successfully loaded the page, but now I need the embedded site to adjust its height according to the actual content on that site, not just the height of the container webpage.
Currently, if I set the height to 100%, it only displays part of the website because there isn't much content on the page. I don't want to manually set a specific height for the embedded website because some pages may have minimal content like a few images or text lines.
Is there a way to dynamically adjust the height?
Code for Iframe -
<iframe src="http://example.com" width="100%" height="100%" frameborder="0" scrolling="no"></iframe>
Code for object -
<object data="http://example.com" type="text/html" height="100%" width="1024px"></object>