I have a div tag with an id attribute set.
I have searched all over google and I can't figure out for the life of my how to get the screen position in pixels of this element.
I want to position a tooltip relative to this div tag, so I wanted to add these numbers to the tooltip's .style.top and .style.left properties.
I have searched all over google and I can't figure out for the life of my how to get the screen position in pixels of this element.
I want to position a tooltip relative to this div tag, so I wanted to add these numbers to the tooltip's .style.top and .style.left properties.