# ui.Label.setUrl

<br />

Sets the url of the label, which will cause it to render as a link.

<br />

Returns this label.

| Usage | Returns |
|---|---|
| `Label.setUrl(targetUrl)` | ui.Label |

| Argument | Type | Details |
|---|---|---|
| this: `ui.label` | ui.Label | The ui.Label instance. |
| `targetUrl` | String | The url of the hyperlink. |