Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q212 Is it possible to maximise the current window?

irt.org | Knowledge Base | JavaScript | Window | Q212 [ previous next ]

Q212 Is it possible to maximise the current window?

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>

Feedback on 'Q212 Is it possible to maximise the current window?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.