---
title: DOMRectReadOnly.y
slug: Web/API/DOMRectReadOnly/y
tags:
  - API
  - DOM
  - DOMRect
  - DOMRectReadOnly
  - Experimental
  - Geometry
  - Property
  - Reference
  - 'y'
browser-compat: api.DOMRectReadOnly.y
---
{{APIRef("DOM")}}{{ SeeCompatTable() }}

The **`y`** read-only property of the **`DOMRectReadOnly`** interface represents the y coordinate of the `DOMRect`'s origin.

## Syntax

```js
var recY = DOMRect.y;
```

### Value

A double.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}

## See also

- {{domxref("DOMRect")}}
