---
name: "ctrlSetURL"
type: command
status: ok
groups: ["GUI Control"]
arma3_since: "2.02"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/ctrlSetURL
revid: 325207
updated: 2022-07-03T07:02:32Z
---

# ctrlSetURL

*Command · GUI Control · Arma 3 v2.02*

## Description

Sets URL property of the given control subject to `allowedHTMLLoadURIs[]` whitelisting in [CfgCommands](../topics/Description.ext.md) config. Supported controls are:
- `CT_BUTTON`
- `CT_SHORTCUTBUTTON`
- `CT_ACTIVETEXT`

## Syntax

```sqf
control ctrlSetURL URL
```

**Parameters:**

- `control`: [Control](../topics/Control.md)
- `URL`: [String](../topics/String.md)

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
_control ctrlSetURL "http://arma3.com/";
```

## See also

[ctrlURL](../commands/ctrlURL.md) · [menuSetURL](../commands/menuSetURL.md)

<sub>Source: [BI Community Wiki — ctrlSetURL](https://community.bistudio.com/wiki/ctrlSetURL) (revision 325207).</sub>
