Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: maximize ie window


Message #1 by "rgsiva" <rghsiva@e...> on Fri, 11 Jan 2002 07:07:12 +0530
Try this JavaScript function, calling it on the onLoad event. I haven't
tested it cross browser but it should work:

function maximizeWin() {
  if (window.screen) {
    var aw = screen.availWidth;
    var ah = screen.availHeight;
    window.moveTo(0, 0);
    window.resizeTo(aw, ah);
  }
}


----- Original Message -----
From: "Peter Mickelsson" <peter.mickelsson@a...>
To: "JavaScript HowTo" <javascript_howto@p...>
Sent: Friday, January 11, 2002 8:07 AM
Subject: [javascript_howto] Re: maximize ie window


> If you want to expand the window over the whole screen, you can use
> screen.availWidth and screen.availHeight as values.
> /Peter
>
>
> ----- Original Message -----
> From: "rgsiva" <rghsiva@e...>
> To: "JavaScript HowTo" <javascript_howto@p...>
> Sent: Friday, January 11, 2002 2:37 AM
> Subject: [javascript_howto] maximize ie window
>
>
> > Hi
> > I want to maximize the browser window on opening a page.
> > I tried with window.resizeTo(800,640) and various other values of width
> and
> > height.
> > but there is a little difference between the maximized window and
resized
> > window.
> > How to maximize the browser window with JavaScript
> >
> > thanks in advance
> >
> > with regards
> > jothi
> >
> >
> $subst('Email.Unsub').
>
>
$subst('Email.Unsub').


  Return to Index