javascript - clientHeight in FireFox -
i have table in html code.
i need height of table using javascript, so
alert(document.getelementbyid('mytable').clientheight);
returns correct value in ie, returns 0 in ff.
how can height of table in firefox?
thanks!
clientheight
non-standard, html-specific property introduced in internet explorer object model.
in firefox, offsetheight
property contains current pixel height of element, can use like:
var theheight = element.clientheight || element.offsetheight;
Comments
Post a Comment