# Link

Create a hyper link in a dashboard.

## Basic Link

Create a basic link that goes to a web page.

```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.

```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.

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

## API

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