Feedback on: irt.org FAQ Knowledge Base Q1481
Worth:
Not worth reading
Comments:
It doesn't seem to work in either IE5.5 or NS4.
Worth:
Worth reading
Comments:
It didn't work, but it did give me a baseline to start from. Below is the code I used to make this work. It is only for IE was tested on IE 5.5
<script language="JavaScript">
function ResizeMe()
{
var height = 0;
if (document.all)
//height = document.all.body.height
height = document.body.clientHeight - 63;
window.resizeTo(380,height);
alert (height)
}
</script>
Worth:
Not worth reading
Comments:
It doesn't work in IE 5.0, but all it really took was a good old game of guessing:
document.body.scrollHeight
Remember, however, that you can only call it at the bottom of the document, or when the document is completely loaded.
Hope this helps.
Comments:
the correct values for the whole document length (including the hidden parts) (L1) and the height of the browser window (L2):
IE:
L1=document.body.scrollHeight
L2=document.body.offsetHeight
NS:
L1=document.height
L2=window.innerHeight