Click to See Complete Forum and Search --> : document.getElementById(id).offsetLeft doesnt work in firefox as expected!


koolz33
04-15-2009, 05:33 AM
Hi,
I wanted to know the relative position of an image in <td> and therefore used document.getElementById(id).offsetLeft where id refers to the respective <td>. This works fine in IE where i get the relative position of each <td>. But in Firefox it gives total width or depth with respect to the entire page(equivalent to clientX/clientY). How do i solve this?
Thanks a lot