programming/jsp

[jsp] iframe resize

labj 2012. 7. 9. 13:28

[jsp] iframe resize




site1 코드

<html>

<%-- iframe resize --%>

function autoResize(i) {

    var iframeHeight=(i).contentWindow.document.body.scrollHeight;

    (i).height=iframeHeight+20;

}

<body>

<iframe src="<c:url value="/contentEdit/page.do?pageCode=191"/>" name="imgview" frameborder="0" scrolling="no" onload="autoResize(this)" style="width: 530px"></iframe>

</body>

</html>




[jsp] iframe resize