# Link

Create a hyper link in a dashboard.&#x20;

## Basic Link

Create a basic link that goes to a web page.&#x20;

```powershell
New-UDLink -Text 'Ironman Software' -Url https://www.ironmansoftware.com
```

## Change Style

Adjust the underline and text style.

```powershell
    New-UDLink -Text 'Ironman Software' -Url https://www.ironmansoftware.com -Variant h2 -Underline always
```

## Open in a New Window

Open the link a new window when clicked.&#x20;

```powershell
New-UDLink -Text 'Ironman Software' -Url https://www.ironmansoftware.com -OpenInNewWindow
```

## OnClick Event Handler

Execute a PowerShell script block when the link is clicked.&#x20;

```powershell
New-UDLink -Text 'Ironman Software' -OnClick {
    Show-UDToast "Hello!"
}
```

## API

* [New-UDLink](https://github.com/ironmansoftware/universal-docs/blob/master/cmdlets/New-UDLink.txt)


---

# 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.powershelluniversal.com/v4-beta/userinterfaces/components/navigation/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.
