반응형
<script type="text/javascript">
function resizeHeight(id)
{
var the_height = document.getElementById(id).contentWindow.document.body.scrollHeight;
document.getElementById(id).height = the_height + 30;
}
</script>
<iframe src="#" id="commentFrame"frameborder="0" onLoad="resizeHeight('commentFrame');"></iframe>
반응형
'공부거리 > JAVASCRIPT' 카테고리의 다른 글
[jquery]제이쿼리 사용한 백그라운드 실행..쉽다..ㅠㅠ (0) | 2012.09.18 |
---|---|
일정 시간마다 스크립트 실행 하는 함수 (0) | 2012.09.11 |
모바일 웹페이지 이동 스크립트 (0) | 2012.05.10 |
숫자 체크 (0) | 2012.04.09 |
날짜 유효성 검사 (0) | 2012.03.07 |