# on-tab parameter (skin)

Source: https://ref.dm-lang.org/skin/param/on-tab

### Applies to
- [Info](https://ref.dm-lang.org/skin/control/info.md)
- [Tab](https://ref.dm-lang.org/skin/control/tab.md)


### Format
> `string`

[Command](https://ref.dm-lang.org/skin/commands/index.md) executed when the current tab is changed.

If you include `[[*]]` in the command, it will be replaced by the new tab's [id](https://ref.dm-lang.org/skin/param/id.md). (See [embedded winget](https://ref.dm-lang.org/skin/commands/embed.md) for more details on the `[[...]]` format.)

### See also
- [current-tab parameter](https://ref.dm-lang.org/skin/param/current-tab.md)
- [tabs parameter](https://ref.dm-lang.org/skin/param/tabs.md)
