# Javascript: TXTextControl.setStatusBarColor Method

> Sets the background color of the status bar.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 24.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: TXTextControl.setStatusBarColor Method
- **197 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/setstatusbarcolor-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/setstatusbarcolor-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/setstatusbarcolor-method/llms-full.txt

---

### Description

Sets the background color of the status bar.

### Syntax

```javascript
<void> TXTextControl.setStatusBarColor(<string> hexColor)
```

### Parameters

| Parameter | Description |
|---|---|
| hexColor | The color value. Must be a hexadecimal CSS color string. Valid values are "#AAA" or "#B634A2", for example. |

### Examples

The following example demonstrates `TXTextControl.setStatusBarColor` in a practical document-editing workflow. It sets the background color of the status bar.

```javascript
TXTextControl.setStatusBarColor("#ffd54f");
```

---

## Nearby

- **Previous:** [Javascript: TXTextControl.setSelectObjects Method](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/setselectobjects-method/llms-full.txt)
- **Next:** [Javascript: TXTextControl.setText Method](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/settext-method/llms-full.txt)
