[[Javascript]] width and height of an element

Lee Hinde leehinde at gmail.com
Sun Sep 24 11:33:14 CDT 2006


On 9/24/06, Bernu Bernard <bernu at lptmc.jussieu.fr> wrote:
> Hi list,
>
> How can I find the width and size of an element ?
>
> Say for example I have :
>
> <div id="test" onclick="getsizes()">hello</div>
>
> When I click on "hello" I'd like to get the width and height of this
> element.
>
> Bernard
> _______________________________________________


Google is your friend. I found this:

http://www.aspandjavascript.co.uk/javascript/javascript_api/get_element_width_height.asp

(o, google est vous ami? :-) )
-- 
Mark Twain: "What gets us into trouble is not what we don't know. It's
what we know for sure that just ain't so."



More information about the Javascript mailing list