> This page is for Designer API.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.webflow.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.webflow.com/_mcp/server.

# Get Link Target

> Get the target value of the link block element.

## `element.getTarget()`

Get the target value of the link block element. Links can target URLs emails, and phone numbers, as well as pages within a site, elements on a page, and attachments.

## Syntax

```typescript
element.getTarget(): Promise<null | string | Page | AnyElement | Asset>;
```

## Returns

**Promise\<*null | string | Page | AnyElement | Asset*>**

A Promise that resolves to the target value of the link. The target value can be a string, Page, Element, or an Asset object.

## Example

```typescript
const elements = await webflow.getAllElements(); // Get All Elements
const links = elements.filter((element) => element.type === "Link"); // Filter for Link elements

// Print target value of each link element
for (const link of links) {
  const targetValue = await link.getTarget();
  console.log(`ID: ${link.id.element}, Target Value: ${targetValue}`);
}
```

## Designer Ability

Checks for authorization only

| Designer Ability    | Locale | Branch | Workflow | Sitemode |
| :------------------ | :----- | :----- | :------- | :------- |
| **canAccessCanvas** | any    | any    | any      | any      |

```
```