<iframe width="100%" align="center" height="200" id="cwin" onload="Javascrīpt:SetCwinHeight()" frameborder="0" scrolling="no" src="one.jsp" ></iframe>
<script type="text/javascript">
function SetCwinHeight()
{
var cwin=document.getElementById("cwin");
if (document.getElementById)
{
if (cwin && !window.opera)
{
if (cwin.contentDocument && cwin.contentDocument.body.offsetHeight)
cwin.height = cwin.contentDocument.body.offsetHeight;
else if(cwin.Document && cwin.Document.body.scrollHeight)
cwin.height = cwin.Document.body.scrollHeight;
}
}
}
</script>
|