Hi,
I'm trying to re-size an IFRAME (based on the height of the content), using this code:
..but it doesn't work. Any ideas what I'm doing wrong?
TIA!
Andy
I'm trying to re-size an IFRAME (based on the height of the content), using this code:
Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 32</title>
<script>
function resizeIframe(iframeID) {
if(self==parent) return false;
else if (document.getElementById&&document.all)
var FramePageHeight = framePage.scrollHeight + 10;
parent.document.getElementById(iframeID).style.height=FramePageHeight;
}
window.onload=resizeIframe('test_iframe');
</script>
</head>
<body>
<iframe name="test_iframe" src="[URL unfurl="true"]http://gossamerlinks.com/cgi-bin/dev/get_code.cgi?action=show;ID=3;type=tower;rating=1;popularity=1;recent_reviews;recent_reviews=1;write_a_review=1"></iframe>[/URL]
</body>
</html>
..but it doesn't work. Any ideas what I'm doing wrong?
TIA!
Andy