Menu
hi,
i need to retrieve the height of a elements in my document.
Currently i wrote a javascript at end of document that cicle onto elements by a particular name and check its max height.
But i cannot find a property that tell me what is the height of element!!!
[code]
function getMaxX() {
var allTabs = new Array(“tab1”, “tab2”, “tab3”);
var maxH = 0;
for (i = 0; i < allTabs.length; i++) {
var wichTab = allTabs[i];
obj = document.getElementById(wichTab);
var tempH = obj.style.height;
if (tempH > maxH) {
maxH = tempH;
}
}
alert(maxH);
}
some suggestions?