I have a site with an iframe in which I show the chosen menuitem.
I have this script:
<script language=”JavaScript” type=”text/JavaScript”>
<!–
function setIframe( html_document )
{
document.all( ‘main’ ).src = html_document;
document.all( ‘main’ ).style.height = document.all( ‘main’ ).body.clientHeight();
}
//–>
</script>
And the tag for clicking the menu items is like this:
<a href=”javascript:setIframe( ‘news.htm’ )”>News</a>
The frames content changes as it should, but I don’t the the height to fit the contents of the iframe…
This problem is driving me nuts. If you know what I’m doing wroing, please tell me. I’m new to JavaScript if that isn’t obvious if you refer to my posts in this forum…
Thank you.