Posted By

pauliehaha on 03/04/11


Tagged

iframe


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

johnw
rygiel


Auto-expand iframe


 / Published in: jQuery
 

  1. <script type="text/javascript">$('iframe').contents().find('body').css({"min-height": "100", "overflow" : "hidden"}); setInterval( "$('iframe').height($('iframe').contents().find('body').height() + 20)", 1 );</script>

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: vivekmyself on July 19, 2011

This is not working in IE

You need to login to post a comment.