---
name: "up.link.isSafe"
area: "API"
kind: "JavaScript function"
parent: "up.link module"
url: "https://unpoly.com/api/up.link.isSafe"
---
<nav aria-label="Unpoly docs">[All docs](https://unpoly.com/index.md) · [up.link module](https://unpoly.com/api/up.link.md)</nav>

# up.link.isSafe(link)

Returns whether the given link has a [safe](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.1.1) HTTP method like `GET`.

You can configure links to use unsafe methods like `POST` or `DELETE` by setting an [`[up-method]`](https://unpoly.com/api/up-follow.md#up-method) attribute.

---

## Parameters {#parameters}

### link {#link}

(required)

The link to test.

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

---

## Return value {#return-value}

Whether the link will be followed using a safe HTTP method.

Type: boolean

