Back to Content

DOMRectReadOnly: right property

files/en-us/web/api/domrectreadonly/right/index.md

latest388 B
Original Source

{{APIRef("Geometry Interfaces")}}{{AvailableInWorkers}}

The right read-only property of the DOMRectReadOnly interface returns the right coordinate value of the DOMRect. (Has the same value as x + width, or x if width is negative.)

Value

A double.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{domxref("DOMRect")}}