<body>
<iframe marginheight=”0″ marginwidth=”0″ src=”Default.aspx” frameborder=”0″ scrolling=”no” width=”100%” id=”info_iframe” name=”info_content” onload=”change_size()”></iframe>
</body>
<head>
<script language=”javascript”>
function change_size()
{
document.getElementById(“info_iframe”).style.height=info_content.document.body.scrollHeight+1+”px”;
}
</script>
</head>
防止被人frame
<SCRIPT LANGUAGE=JAVASCRIPT><!–
if (top.location != self.location)top.location=self.location;
// –></SCRIPT>