You are here: irt.org | FAQ | JavaScript | Window | Q240 [ previous next ]
The following works in Netscape Navigator 4 only:
<SCRIPT LANGUAGE="JavaScript"><!--
if (window.screen && document.layers) {
window.moveTo(0,0);
window.outerHeight = screen.availHeight;
window.outerWidth = screen.availWidth;
}
//--></SCRIPT>The following works in both Netscape Navigator 4 and Internet Explorer 4:
<SCRIPT LANGUAGE="JavaScript"><!-- window.resizeTo(655,450); //--></SCRIPT>
They don't however work the same. Netscape Navigator 4 resizes the window so that the document pane is 655x450, whereas Internet Explorer resizes the window to 655x450.