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!

mdc says:

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

Popular posts from this blog

jQuery clickable div with working mailto link inside -

java - Getting corefrences with Standard corenlp package -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -