Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback: irt.org FAQ Knowledge Base Q1481

Feedback on: irt.org FAQ Knowledge Base Q1481

Sent by Hywel Jenkins on January 09, 2001 at 09:45:34: - feedback #2221

Worth:
Not worth reading

Comments:
It doesn't seem to work in either IE5.5 or NS4.


Sent by John Hurst on May 25, 2001 at 09:55:31: - feedback #2767

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>


Sent by Srdjan Canic on July 19, 2001 at 08:36:53: - feedback #2985

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.




Sent by til on October 17, 2001 at 04:17:12: - feedback #3251

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


©2018 Martin Webb