[thelist] pop-up window at % i/o fixed?

Peter-Paul Koch gassinaumasis at hotmail.com
Fri Mar 9 05:03:53 CST 2001


>Hi Folks.  I have a client who wants certain applets to come up in
>pop-up windows in his edu site so the students can still see at least
>some of the screen (so their page doesn't 'disappear' behind a new
>browser window).  All his beta testers are complaining though, that
>the size of the windows is too small, but he doesn't want to go much
>bigger or it'd be too large for smallest rez-target. Is there any pop-
>up javascript that lets a new window come up at a % of the screen
>rather than a fixed pixel width?  I went looking and found dozens of
>slightly different scripts but they are all fixed dimension.


Something like

var wd = (self.screen.width)/3
var ht = (self.screen.height)/3

window.open(url,'','width='+wd+',height='+ht',etc');

ppk

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.





More information about the thelist mailing list