"juglesh" <> wrote in message
news

XsBd.2233$3m6.1002@attbi_s51...
>
> <> wrote in message
> news: ups.com...
> >I want to maximize the browser window when I open a new window. Now I
> > do the following, but
> > different monitor size will yield different width and height values.
> >
> >
window.open('index.jsp',myform.target,'toolbar=no, menubar=no,resizable=y
es,scrollbars=yes,width=800,height=600');
> > Any ideas?
> > please help. thanks!!
>
> function expand() {
> window.moveTo(0,0);
> window.resizeTo(screen.availWidth, screen.availHeight);
> }
- Does not do anything in Gecko-based browsers appropriately configured
- Results in an MDI window that is both too tall and too wide in Opera
7.54u1
- Results in a window that is actually wider and taller than
screen.availWidth/Height in Netscape 4 (because resizeTo() resizes the
window's viewport, not it's outter dimensions)
- Annoys the user when it does work, since they probably had their
browser the size they wanted it
--
Grant Wagner <>
comp.lang.javascript FAQ -
http://jibbering.com/faq