[thelist] IE resize to full screen- via JavaScript

.jeff jeff at members.evolt.org
Sun Dec 29 15:34:01 CST 2002


liam,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Liam Delahunty
>
> function wo(url, name, bits) {
> newWin=window.open(url, name, bits);
> newWin.moveTo(0,0);
> newWin.focus();
> }
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

don't bother with the moveTo() method call.  instead, simply include top and
left parameters in the third argument (bits).  next, don't ever call the
focus() method of the window object without first checking that it's
supported.

if(newWin.focus)
  newWin.focus();

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/




More information about the thelist mailing list