---
name: "up:request:aborted"
area: "API"
kind: "DOM event"
parent: "up.network module"
url: "https://unpoly.com/api/up:request:aborted"
---
<nav aria-label="Unpoly docs">[All docs](https://unpoly.com/index.md) · [up.network module](https://unpoly.com/api/up.network.md)</nav>

# up:request:aborted

This event is [emitted](https://unpoly.com/api/up.emit.md) when a [request](https://unpoly.com/api/up.request.md) was [aborted](https://unpoly.com/learn/aborting-requests.md).

The event is emitted on the layer that caused the request.

Also see [`up:fragment:aborted`](https://unpoly.com/api/up:fragment:aborted.md).

<nav aria-label="Guides">

- [Learn: Aborting requests](https://unpoly.com/learn/aborting-requests.md#reacting)

</nav>

---

## Event properties {#properties}

### event.request {#event.request}

(required)

The aborted request.

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

### [event.layer] {#event.layer}

(optional)

The [layer](https://unpoly.com/api/up.layer.md) this request is associated with.

If this request was intended to update an existing fragment, this is that fragment's layer.

If this request was intended to [open an overlay](https://unpoly.com/learn/opening-overlays.md), the associated layer is the future overlay's parent layer.

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

### [event.origin] {#event.origin}

(optional)

The link or form element that caused the request.

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

### event.preventDefault() {#event.preventDefault}

(required)

