[Prototype-core] Help! How to get document.body height using Element.getDimensions

2009-05-05 Thread kimbaudi
Hi, I am unable to get the height of the body tag using Element.getDimensions although I can get the width of the body tag fine. How can I get the height of the body tag? I have my simple code pasted at http://pastie.org/468828. Here is the snippet of code below as well: function alertBodyDim()

[Prototype-core] Re: Help! How to get document.body height using Element.getDimensions

2009-05-05 Thread Yaoxing Zhang
I think what you want is not the height of body, but client height. try: document.documentElement.clientHeight; On Wed, May 6, 2009 at 12:09 AM, kimbaudi kimba...@gmail.com wrote: Hi, I am unable to get the height of the body tag using Element.getDimensions although I can get the width of the

[Prototype-core] Re: Help! How to get document.body height using Element.getDimensions

2009-05-05 Thread Paul Kim
Hi, I was able to determine the body height by window.innerHeight, document.documentElement.clientHeight, or document.body.clientHeight depending on the browser. Thanks! - Paul K On Tue, May 5, 2009 at 10:32 AM, Yaoxing Zhang yaoxing.zh...@gmail.comwrote: I think what you want is not the