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

# up.Preview.prototype.fragment

The targeted [`Element`](https://developer.mozilla.org/en-US/docs/Web/API/Element) that is being previewed.

When [updating multiple fragments](https://unpoly.com/learn/targeting-fragments.md#multiple), the first targeted fragment will be previewed.

Also see [inspecting the preview context](https://unpoly.com/learn/previews.md#inspecting-the-preview-context).

---

## Return value {#return-value}

Type: [Element](https://developer.mozilla.org/en-US/docs/Web/API/Element)

