Readonly
bottomThe bottom
read-only property of the DOMRectReadOnly
interface returns the bottom coordinate value of the DOMRect
.
The height
property of the DOMRect interface represents the height of the rectangle.
Readonly
leftThe left
read-only property of the DOMRectReadOnly
interface returns the left coordinate value of the DOMRect
.
Readonly
rightThe right
read-only property of the DOMRectReadOnly
interface returns the right coordinate value of the DOMRect
.
Readonly
topThe top
read-only property of the DOMRectReadOnly
interface returns the top coordinate value of the DOMRect
.
The width
property of the DOMRect interface represents the width of the rectangle.
The x
property of the DOMRect interface represents the x-coordinate of the rectangle, which is the horizontal distance between the viewport's left edge and the rectangle's origin.
The y
property of the DOMRect interface represents the y-coordinate of the rectangle, which is the vertical distance between the viewport's top edge and the rectangle's origin.
A
DOMRect
describes the size and position of a rectangle.MDN Reference