getPosition

Get the position of an element relative to the document

Code