On Aug 1, 11:10 am, RMZ <Jeremy.De...@gmail.com> wrote:
> If you have an HTML table defined like so
>
> <table border="1" width="100%" height="100%">
> <tr>
> <td>row 1, cell 1</td>
> <td>row 1, cell 2</td>
> </tr>
> <tr>
> <td>row 2, cell 1</td>
> <td>row 2, cell 2</td>
> </tr>
> </table>
>
> Is it possible using JavaScript to return the width and height pixel
> counts for the width and height of the table?
If you are willing to use prototype.js (Prototype library
http://prototypejs.org/api), you can simply call
$('tableid').getDimensions(); and it will return an object { width: 0,
height: 0 };