<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[`Workspace`](Workspace) › [on('url-menu')](Workspace/on('url-menu').md)
## Workspace.on('url-menu') method
Triggered when the user opens the context menu on an external URL.
**Signature:**
```typescript
on(name: 'url-menu', callback: (menu: Menu, url: string) => any, ctx?: any): EventRef;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| <code>name</code> | <code>'url-menu'</code> | |
| <code>callback</code> | <code>(menu: </code>[`Menu`](Menu)<code>, url: string) => any</code> | |
| <code>ctx</code> | <code>any</code> | _(Optional)_ |
**Returns:**
[`EventRef`](EventRef)