Using the client side DOM I can get the position of an element using:
var myelement = document.getElementById("myid"
alert(myelement.style.top)
but if a style attribute such as style="top:100" for the HTML element has not been defined the style properties are empty in the DOM. Is there a way to get the coordinates of the element other than the style properties?
var myelement = document.getElementById("myid"
alert(myelement.style.top)
but if a style attribute such as style="top:100" for the HTML element has not been defined the style properties are empty in the DOM. Is there a way to get the coordinates of the element other than the style properties?