Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

find width of table

Status
Not open for further replies.

Niv3k

Programmer
Jul 11, 2001
350
US
If I set up a table without declaring "width", how can I find the size? I have tried:
Code:
var tbl
tbl = document.getElementsByTagName("MyTable")
alert(tbl.width);
but all I get is bing! "undefined".

What am I doing wrong?

Kevin
 
I wanted to re-size a frame depending on how wide the table was. The table gets filled using .ASP from a database, and sometimes the fields might be real long, other times, they are short. But apparently, I did some more research and found that I could not re-size a frame once it's been drawn.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top