Size of Element

Giganews Newsgroups
Subject: Size of Element
Posted by:  Steve (az.cygn…
Date: Sat, 19 Jul 2003

Is there a way to determine the height of a table. I have a table that is
built dynamically and contained in a div element. I want to be able to
position this div element based on the size of the table contained within

<div id="div1"></div>

in my script I do something like this...

document.all[div1].innerHTML = '<table border="0" width="300"
cellspacing="0" cellpadding="0">' +
  '<tr><td width="100%" bgcolor="#000000">' +  tContent +

tContent is a variable that can contain text that is chosen dynamically
based on user input. Basically what I want to do is determine the height of
the table so I can make sure the table is positioned so that it does not
display beyond the top or bottom edge of the page.

Thanks for any help...