View Full Version : Window "inner" width and height
05-06-2008, 04:06 PM
Is there a way to find the "inner" width and height of a window, without all the menu bars, tool bars, status lines, buttons, etc.
I would like just the available real estate for my graphics.
05-06-2008, 06:33 PM
Not sure if this is the best way to do it, but try this.
works in ie 6/7, firefox
05-06-2008, 06:41 PM
That's a neat trick, but...
It returns the BODY width & height, which is not the "visible" usable document area inside the browser window (minus toolbars, status bar, etc)
In my case, the body is larger than the window.
05-06-2008, 06:46 PM
It shouldn't return the body.
It should return the body's parent node which is html.
why don't you post the code?
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.