---
name: "up.Layer.prototype.child"
area: "API"
kind: "Property"
parent: "up.Layer class"
url: "https://unpoly.com/api/up.Layer.prototype.child"
---
<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.child

Returns this layer's child layer.

The child layer is the layer that was opened on top of this layer. It visually overlays this layer.

Returns `undefined` if this layer has not opened a child layer.

A layer can have at most one child layer. Opening an overlay on a layer with an existing child will first dismiss the existing child before replacing it with the new child.

---

## Return value {#return-value}

child This layer's direct child overlay.

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

