offsetTop property not working in ie
I have got different problem when i tried to get the position of the div in the page using offsetTop. I have written the following code to return the div top position.
- alert("Div id".offsetTop);
- alert("Div id".style.offsetTop);
The above code working fine in mozilla, but in ie its showing 0. Finally i came to know that the property "offsetTop" will work for div's with absolute position.
Hope the above information is useful otherwise kindly let me know if you have any solution for find the position of div using "offsetTop".
Alternate for find div position in a page :http://kirblog.idetalk.com/2007/10/problem-with-offsettop-and-element.html
Thanks
Satishveera
No comments:
Post a Comment