method
getBoundingClientRect

Rectangle getBoundingClientRect( )

Returns the smallest bounding rectangle that encompasses this element's padding, scrollbar, and border.

Other resources