다음의 코드를 헤드에 넣고
<script language="JavaScript">
<!--
function calcHeight()
{
//find the height of the internal page
var the_height=
document.getElementById('the_iframe').contentWindow.
document.body.scrollHeight;
//change the height of the iframe
document.getElementById('the_iframe').height=
the_height;
}
//-->
아래와 같이 iframe을 삽입!
<iframe name="the_iframe" onLoad="calcHeight();" scrolling="no" width="730" id="the_iframe" src="you_page.html" frameborder="0" allowtransparency="true"></iframe>
출처: http://www.programmingtalk.com/showthread.php?t=25995
(단, 해당 페이지가 서버 내에 있는 경우에만 작동한다)