---
name: "up.Layer.prototype.parent"
area: "API"
kind: "Property"
parent: "up.Layer class"
url: "https://unpoly.com/api/up.Layer.prototype.parent"
---
<nav aria-label="Unpoly docs">[All docs](https://unpoly.com/index.md) · [up.Layer class](https://unpoly.com/api/up.Layer.md)</nav>

# up.Layer.prototype.parent

Returns this layer's parent layer.

The parent layer is the layer that opened this layer. It is visually in the background of this layer.

Returns `undefined` for the [root layer](https://unpoly.com/api/up.layer.root.md).

## Example {#example}

```js
up.layer.open()

up.layer.parent // returns up.Layer.Root
```

---

## Value {#value}

### parent {#parent}

This layer's parent layer.

Type: [up.Layer](https://unpoly.com/api/up.Layer.md)

