how do i capture the true width and height of an object (including borders, padding etc) using javascript? i know that object.style.height will give me the CSS height, but i want to know the overall dimensions…
[CODE]function elSize(who){ return [Math.max(who.scrollWidth,who.offsetWidth), Math.max(who.scrollHeight,who.offsetHeight)]; }[/CODE]
Help @bcamp1973 spread the word by sharing this article on Twitter...