It’s really easy to get the position of an element relative to it’s parent element, but what if you wanted to get it’s position relative to the entire page (viewport)? There’s no javascript call to do this, but here is a function to get the elements x & y coordinates.
