Re: Maximizing a browser

by "Lisa Bradshaw" <zibbler(at)web-design-cs.com>

 Date:  Mon, 16 Sep 2002 13:48:50 -0400
 To:  <hwg-techniques(at)hwg.org>
 References:  localhost pieceoshit
  todo: View Thread, Original
I was asked if I'd mind sharing the script I found to maximize a window,
soooo, here it is. It goes in the head of the page you want maximized.

<script language="JavaScript1.2">
<!--

/*
Auto Maximize Window Script- By Nick Lowe (nicklowe(at)ukonline.co.uk)
For full source code, 100's more free DHTML scripts, and Terms Of Use
Visit http://www.dynamicdrive.com
*/

top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if
(top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.ava
ilWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
//-->
</script>

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA