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

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -