I attempted to set the height of an IFrame to 100% (similar to setting a <div>
to height:auto
).
I specified the height
attribute in the <iframe>
tag as 100% and also set the height
in the style to 100%, but it doesn't appear to be functioning as expected.
Subsequently, I experimented with using JavaScript and JQuery to retrieve the height of the content within the <iframe>
, but due to browser security protocols, I was unable to access the height information.
Is there a way to resolve this? I've dedicated an entire day to trying to solve this issue.