Is there a way to set the height of the iframe to be the same as the height of its source?
I am trying to
a) Avoid scrollbars and
b) Avoid using fixed height in px
Thank you. :)
Since the source page is on a different domain — no.
The only way to adjust its size based on the content is to measure the rendered size of the content using JavaScript, and the Same Origin Policy will prevent this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With