getBoundingClientRect method

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

Rectangle getBoundingClientRect( )

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

Other resources