# Javascript: Ribbon.selectedTab Property

> Gets or sets the currently selected ribbon tab name. Possible values are: "tabDefault", "tabInsert", "tabPageLayout", "tabMailings", "tabView", "tabTableLayout", "tabObjectFormat", "tabShapeFormat", "tabPermissions", "tabFormula" and "tabChartFormatting".

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 24.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: Ribbon.selectedTab Property
- **244 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/ribbon/selectedtab-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/ribbon/selectedtab-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/ribbon/selectedtab-property/llms-full.txt

---

### Description

Gets or sets the currently selected ribbon tab name. Possible values are: "tabDefault", "tabInsert", "tabPageLayout", "tabMailings", "tabView", "tabTableLayout", "tabObjectFormat", "tabShapeFormat", "tabPermissions", "tabFormula" and "tabChartFormatting".

### Syntax

```javascript
<string> Ribbon.selectedTab
```

### Examples

The following example demonstrates `Ribbon.selectedTab` in a practical document-editing workflow. It gets or sets the currently selected ribbon tab name. Possible values are: "tabDefault", "tabInsert", "tabPageLayout", "tabMailings", "tabView", "tabTableLayout", "tabObjectFormat", "tabShapeFormat", "tabPermissions", "tabFormula" and "tabChartFormatting".

```javascript
const selectedTab = TXTextControl.ribbon.selectedTab;
console.log("selected tab:", selectedTab);
```

---

## Nearby

- **Previous:** [Javascript: Ribbon.minimize Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/ribbon/minimize-method/llms-full.txt)
- **Next:** [RibbonPermissionsTab Object](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/ribbonpermissionstab/llms-full.txt)
