Resizing an iframe based on content

Posted by larssg on Stack Overflow See other posts from Stack Overflow or by larssg
Published on 2008-09-30T14:05:11Z Indexed on 2010/04/30 6:17 UTC
Read the original article Hit count: 246

Filed under:
|
|

I am working on an iGoogle-like application. Content from other applications (on other domains) is shown using iframes.

How do I resize the iframes to fit the height of the iframes' content?

I've tried to decipher the javascript Google uses but it's obfuscated, and searching the web has been fruitless so far.

Update: Please note that content is loaded from other domains, so the same-origin policy applies.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about iframe