Skip to main content
canisoon
Element.getBoundingClientRect()
99.51
JS API
Method to get the size and position of an element's bounding box, relative to the viewport.
Further reading:
Can I use page for: Element.getBoundingClientRect()
MDN Web Docs - getBoundingClientRect
Microsoft Developer Network