Is there anyway to the positioning of any element without using e.pageX and e.pageY.
Check this fiddle
The fiddle is actually a poor attempt at what im trying to ask, but i though a visual example would be better. What i want to know is, Is it possible to find the X and Y co-ordinates of any element on the DOM by referencing using
document.getElementByID('elementID');
or maybe
document.getElementsByTagName('TagName');
EDIT: Although i have used Jquery in the FIDDLE, I would like a possible solution using only JavaScript.