Connecting Tech Pros Worldwide Forums | Help | Site Map

How can i get the table height by Javascript

技安
Guest
 
Posts: n/a
#1: Jul 20 '05
How can i get the table height by Javascript



Stuart Palmer
Guest
 
Posts: n/a
#2: Jul 20 '05

re: How can i get the table height by Javascript


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:bpektf$lhu5@imsp212.netvigator.com...[color=blue]
> How can i get the table height by Javascript
>
>[/color]


Fabian
Guest
 
Posts: n/a
#3: Jul 20 '05

re: How can i get the table height by Javascript


Stuart Palmer hu kiteb:
[color=blue]
> 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?[/color]

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

Vjekoslav Begovic
Guest
 
Posts: n/a
#4: Jul 20 '05

re: How can i get the table height by Javascript


"技安" <技安@技安•公司> wrote in message
news:bpektf$lhu5@imsp212.netvigator.com...[color=blue]
> How can i get the table height by Javascript[/color]

document.getElementById("your_table_id").offsetHei ght


技安
Guest
 
Posts: n/a
#5: Jul 20 '05

re: How can i get the table height by Javascript


thx

"Vjekoslav Begovic" <vjbegovic@inet.hr> 在郵件
news:bpfat8$avl$1@ls219.htnet.hr 中撰寫...[color=blue]
> "技安" <技安@技安•公司> wrote in message
> news:bpektf$lhu5@imsp212.netvigator.com...[color=green]
> > How can i get the table height by Javascript[/color]
>
> document.getElementById("your_table_id").offsetHei ght
>
>[/color]


Jerry
Guest
 
Posts: n/a
#6: Jul 20 '05

re: How can i get the table height by Javascript


how to get the heigh if the table in side the <div>??

"Vjekoslav Begovic" <vjbegovic@inet.hr> 在郵件
news:bpfat8$avl$1@ls219.htnet.hr 中撰寫...[color=blue]
> "技安" <技安@技安•公司> wrote in message
> news:bpektf$lhu5@imsp212.netvigator.com...[color=green]
> > How can i get the table height by Javascript[/color]
>
> document.getElementById("your_table_id").offsetHei ght
>
>[/color]


Vjekoslav Begovic
Guest
 
Posts: n/a
#7: Jul 20 '05

re: How can i get the table height by Javascript


"Jerry" <jerrry@jerry.com> wrote :[color=blue]
>how to get the heigh if the table in side the <div>??[/color]

Perhaps

document.getElementById("your_table_id").offsetHei ght



Closed Thread


Similar JavaScript / Ajax / DHTML bytes