PDA

View Full Version : Displayable area size


MrDoubtFire
01-17-2003, 03:48 PM
Hi all,

I was coding happily away, and using:

window.resizeTo(800,600)

to ensure that I knew what sizes I had to work with. However I came across some positioning problems and my friend asked me whether it was the browser itself that was 800X600, or the displayable area that was 800X600. Needless to say, I opened my mouth then realized I didn't actually know.

Could someone help with this little query?

Thx!

MrDoubtFire

redhead
01-17-2003, 04:24 PM
take a look at joh6nn's script:

http://www.codingforums.com/showthread.php?threadid=8665

please dont resize it that big... i would immediatly give your site the alt+f4 treatment if it did that to me.

in fact, its probably best to design your webpages to work in most browser sizes so you dont have to resize it at all.

vladdy puts it very well here (http://www.vladdy.net/WebDesign/Principles.html):


When user opens a web browser application, it becomes his window to the World Wide Web. The user sizes this window and positions it according to his/her preferences. Web sites should stay within these boundaries. Trying to manipulate them by changing the size of browser window and moving it around is disrespectful to the user. While there are applications which require opening of new windows, other means should be explored before resorting to a pop-up. Most of the times the same functionality can be achieved using an absolutely positioned layer within the main document.

:thumbsup: