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

Q240 Is it possible to dynamically alter the size of a window after it has been created?

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.

Feedback on 'Q240 Is it possible to dynamically alter the size of a window after it has been created?'

©2018 Martin Webb