Auto Resize iframe Based on Content of iframe

Dear all,

A much asked question, but we have the below iframe embedded in a WordPress page, and we need the iframe to auto-resize each time the content of the iframe changes (i.e. when users click on a link in the iframe to go from one page to another each being longer or shorter than the other)... Width will always remain static.

<iframe src="http://ourwebsiteforums" frameborder="0" align="left" width="1075" height="100%"></iframe>

Please provide working code, and also note that we DO NOT want scrollbars to appear.

Thank you.
Who is Participating?
hankknightConnect With a Mentor Commented:
This does exactly what you are looking for:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.