Yes, indeed. I thought the same thing. The only other thing that I noticed is that sometimes this algorithm will attempt to place the window in the position of a 3rd monitor, when none exists - because of the floor() trick you used. However, the browser seems to ignore this, and pushes the...
Thanks for the reply. Your method does appear to work for my specific case, where I use IE for my own personal homepage.
Unfortunately, for the general case, this is insufficient, because screenLeft / screenTop is available only in IE. screenX / screenY is their equivalent in Netscape /...
I highly recommend Charles Petzold's Programming Windows, as well. It's in its 5th version now, for Windows 98, but this is fine for developing on Windows XP.
Jason Doucette
http://www.jasondoucette.com/
Hello, I have seen many solutions for maximizing a window with the following code:
self.moveTo(0,0);
self.resizeTo(screen.availWidth,screen.availHeight);
I have tested this with IE 6.0 and Mozilla Firefox 1.0. If this is put to use on a multiple monitor system, on a monitor with negative...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.