Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[[Javascript]] width and height of an element


  • From: mwarden at gmail.com (Matt Warden)
  • Subject: [[Javascript]] width and height of an element
  • Date: Sun Sep 24 11:47:03 2006

On 9/24/06, Bernu Bernard <bernu@xxxxxxxxxxxxxxxx> 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.

http://developer.yahoo.com/yui/docs/dom/YAHOO.util.Dom.html#getRegion
http://developer.yahoo.com/yui/docs/dom/YAHOO.util.Region.html#bottom

-- 
Matt Warden
Cleveland, OH, USA
http://mattwarden.com


This email proudly and graciously contributes to entropy.