You are here: irt.org | FAQ | JavaScript | Window | Q212 [ previous next ]
Only in Netscape 4:
<head>
<script language="JavaScript"><!--
if (window.screen) {
window.moveTo(0,0);
window.outerHeight = screen.availHeight;
window.outerWidth = screen.availWidth;
}
//--></script>
</head>
<body>
</body>A href="nicklowe@ukonline.co.uk">Nick Lowe writes:
I have written a simple script that automatically maximises the browser window when it is loaded within a webpage in both Netscape and Internet Explorer. The script goes as follows: <script language="JavaScript"> window.moveTo(0,0); if (IE) { window.resizeTo(screen.availWidth,screen.availHeight); } if (NS) { window.outerHeight = screen.availHeight; window.outerWidth = screen.availWidth; } </script>