Click to See Complete Forum and Search --> : Finding Usable space


lincsimp
07-06-2004, 01:28 PM
Hi
How can I find the height and width of the space available to the webpage? I basically want to find the equivelent values to 100%.
Thanks for your help

gil davis
07-07-2004, 06:11 AM
In Netscape/Mozilla, you can access the window's innerWidth and innerHeight.

In IE, those properties are not exposed to javascript. You can get the body width and height, but not the window. See http://msdn.microsoft.com/workshop/Author/om/measuring.asp for more information.

lincsimp
07-07-2004, 11:39 AM
Sorted it!
just put
h = document.body.clientHeight
w = document.body.clientWidth