L
laredotornado
Hello,
I am looking for a cross browser way (IE, Firefox, Safari) of
getting the screen width, in pixels, of an element on my page. I am
interested in the "navImg" table cell. Here is a snippet of code:
<tr>
<td style="width:45px; height:38px;" id="navImg" name="navImg"><img
src="images/NAV_07.gif" alt="" border="0"></td>
How would I use JS to get this width? (I can't just use 45 as a
hard-coded value, because I may be going in and changing this table
cell).
Thanks, - Dave
I am looking for a cross browser way (IE, Firefox, Safari) of
getting the screen width, in pixels, of an element on my page. I am
interested in the "navImg" table cell. Here is a snippet of code:
<tr>
<td style="width:45px; height:38px;" id="navImg" name="navImg"><img
src="images/NAV_07.gif" alt="" border="0"></td>
How would I use JS to get this width? (I can't just use 45 as a
hard-coded value, because I may be going in and changing this table
cell).
Thanks, - Dave