# Sandbox.UI.Label.OnNodeClicked

```csharp
System.Action<INode> OnNodeClicked { get; set; }
```

Called when a node within rich text ([Sandbox.UI.Label.IsRich](/api/Sandbox.UI.Label/IsRich)) is clicked, with the clicked
node. When set, this replaces the default behaviour - which opens a valid http/https
`href` on an anchor in the user's browser - letting you inspect the node and handle
custom anchor schemes or open in-game popups.

Declared in [Sandbox.UI.Label](/api/Sandbox.UI.Label).
Assembly: `Sandbox.Engine`.
