[[Javascript]] width and height of an element

Paul Novitski paul at juniperwebcraft.com
Sun Sep 24 15:24:59 CDT 2006


At 9/24/2006 09:42 AM, Bernu Bernard wrote:
>My question is what you do when the browser decides the width and
>size of the element.
>The usual need is when you precise the width and you want to find
>what the browser has set for the height.
>
>When you directly ask the height you get nothing (null or undefined).


I have found Peter-Paul Koch to be a source of reliable low-level 
JavaScript functions:
http://www.quirksmode.org/

His JavaScript section:
http://www.quirksmode.org/js/contents.html

Element dimensions:
http://www.quirksmode.org/js/elementdimensions.html


Regards,
Paul

PS:  I see that PPK has redesigned his site! 




More information about the Javascript mailing list