Forum Moderators: open
<html>
<head>
</head>
<body>
<iframe id='library' src='frame1.htm' frameborder='1' height="300"></iframe>
</body>
</html> <html>
<head>
</head>
<body onload="resizeIframe()">
<script type="text/javascript">
function resizeIframe() {
var howtall = document.body.scrollHeight;
parent.document.getElementById('library').style.height=howtall;
}
</script>
<p>content frame1.htm - it's longer</p><p>content</p><p>content</p><p>content</p>
<p> <a href="frame2.htm">go to frame2</a> <p>content</p><p>content</p><p>content</p><p>content</p><p>content</p><p>content</p><p>content</p><p>content</p><p>content</p><p>content</p><p>content</p><p>content</p><p>content</p><p>content</p><p>content</p><p>content</p><p>content</p><p>content</p><p>content</p>
</body>
</html> <html>
<head>
</head>
<body onload="resizeIframe()">
<script type="text/javascript">
function resizeIframe() {
var howtall = document.body.scrollHeight;
parent.document.getElementById('library').style.height=howtall;
}
</script>
<p>content frame2.htm - it's shorter</p><p>content</p><p>content</p><p>content</p>
<p> <a href="frame1.htm">go to frame1</a> <p>content</p><p>content</p><p>content</p><p>content</p><p>content</p><p>content</p><p>content</p><p>content</p><p>content</p>
</body>
</html>
<?php
header('Cache-Control: max-age=0, public');
header('Last-Modified: Last-Modified: Mon, 29 Jun 1998 02:28:12 GMT');
?>