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.?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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???
CJ: top.document.body ??? would there be a body in a frameset???
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.
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.
or
top.document.ody.clientWid