470,613 Members | 2,344 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,613 developers. It's quick & easy.

How can i get the table height by Javascript

How can i get the table height by Javascript
Jul 20 '05 #1
6 15964
table doesn't have a height property, only width. you may however be able to
name each cell and then calculate the height based on the all the cells
heights added together.

What are you trying to do that needs the tables height?

Stu

"技安" <技安@技安•公司> wrote in message
news:bp*********@imsp212.netvigator.com...
How can i get the table height by Javascript

Jul 20 '05 #2
Stuart Palmer hu kiteb:
table doesn't have a height property, only width. you may however be
able to name each cell and then calculate the height based on the all
the cells heights added together.

What are you trying to do that needs the tables height?


If you put the table inside a DIV that contains nothing else, you could
obtain the height of the DIV iirc.
--
--
Fabian
Visit my website often and for long periods!
http://www.lajzar.co.uk

Jul 20 '05 #3
"技安" <技安@技安•公司> wrote in message
news:bp*********@imsp212.netvigator.com...
How can i get the table height by Javascript


document.getElementById("your_table_id").offsetHei ght
Jul 20 '05 #4
thx

"Vjekoslav Begovic" <vj*******@inet.hr> 在郵件
news:bp**********@ls219.htnet.hr 中撰寫...
"技安" <技安@技安•公司> wrote in message
news:bp*********@imsp212.netvigator.com...
How can i get the table height by Javascript


document.getElementById("your_table_id").offsetHei ght

Jul 20 '05 #5
how to get the heigh if the table in side the <div>??

"Vjekoslav Begovic" <vj*******@inet.hr> 在郵件
news:bp**********@ls219.htnet.hr 中撰寫...
"技安" <技安@技安•公司> wrote in message
news:bp*********@imsp212.netvigator.com...
How can i get the table height by Javascript


document.getElementById("your_table_id").offsetHei ght

Jul 20 '05 #6
"Jerry" <je****@jerry.com> wrote :
how to get the heigh if the table in side the <div>??


Perhaps

document.getElementById("your_table_id").offsetHei ght

Jul 20 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by hqi | last post: by
7 posts views Thread by Just Dummy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.