Link to home
Start Free TrialLog in
Avatar of jhurst
jhurst

asked on

how do I find the active Window's width and height

I can find screen.width and screen.height but this is the size of the display.  I want to find the size of the window that I am actually operating in.  

I assumed it would be window.width but no.

In Netscape there is window.innerWidth which is just waht I want.  What is the equivalent in MSIE.?
ASKER CERTIFIED SOLUTION
Avatar of nax
nax

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
uhm...

or

top.document.ody.clientWidth
Avatar of Michel Plungjan
An in all cases IE will not allow you to look at that value until AFTER the body tag.

CJ: top.document.body ??? would there be a body in a frameset???
Avatar of jhurst
jhurst

ASKER

Just what I needed thatks.

PS I prefer the if (window.document && windown.document.body) ... method to determine whgat I can use than the if netscape - this way I get what features work with browsers I have not thought of.