# Link

The Link control renders as standard \<a> \</a> tags.

**To make the Link work, the Click** [**Event**](/features/events.md) **of the Link has to be created and the NavigateToPage action must be added to the** [**Event**](/features/events.md) **handler.**

***

{% embed url="<https://www.youtube.com/embed/T45PxR0h6y0?autoplay=1&rel=0&vq=1080>" %}
*Add a Link*
{% endembed %}

***

### Properties

1. **Text**

   The text to be shown in the link.
2. **Url**

   The url of the link.
3. **Open in New Window**

   To open the link in a new tab.
4. **Visible**

   Set to False if you don't want this control to render on the page and be visible to the user.

***

### Assigning data to a Link

Example:

To display a link containing a specific value as text:

1. Add a [SetValue](/actions/set-value.md) action to assign the value from the query to the Link's Text property.

Example:

To include a URL parameter with a link:

1. Create the destination page.
   * In the page's Properties section, add a *parameter* for the page.
2. Create a *Click* Event for the link.
3. Add a *NavigateToPage* action to the Click Event handler
   * Select your destination page
   * Select the value to assign to the parameter
4. On the destination page the parameter will be available to assign (using [*SetValue* ](/actions/set-value.md)) to a control or to a variable for further use in queries or other actions.

***

### Events

1. **Click**

   An event that triggers when the link is clicked.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.stadium.software/controls/link.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
