Prueba con offsetHeight y offsetWidth, para calcular alto y ancho respectivamente:
Código Javascript
:
Ver originalfunction dims() {
var height = document.getElementById("target").offsetHeight;
var width = document.getElementById("target").offsetWidth;
alert("Alto: "+height+"\nAncho: "+width);
}