# Javascript: StatusBarViewGeneratorColors.getBackColorTop Method

> Gets the background color at the top of the status bar.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 30.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: StatusBarViewGeneratorColors.getBackColorTop Method
- **339 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/statusbarviewgeneratorcolors/getbackcolortop-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/statusbarviewgeneratorcolors/getbackcolortop-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/statusbarviewgeneratorcolors/getbackcolortop-method/llms-full.txt

---

### Description

Gets the background color at the top of the status bar.

### Syntax

```javascript
<void> StatusBarViewGeneratorColors.getBackColorTop(<RequestStringCallback> callback, [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| callback | Receives the color value. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `StatusBarViewGeneratorColors.getBackColorTop` in a practical document-editing workflow. It gets the background color at the top of the status bar.

```javascript
function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function inspectBackColorTop(statusBarViewGeneratorColors) {
    statusBarViewGeneratorColors.getBackColorTop(
        function(result) {
            console.log("get back color top result:", result);
        },
        onTxError
    );
}
```

---

## Nearby

- **Previous:** [Javascript: StatusBarViewGeneratorColors.getBackColorMiddle Method](https://docs.textcontrol.com/ds-server/reference/javascript/statusbarviewgeneratorcolors/getbackcolormiddle-method/llms-full.txt)
- **Next:** [Javascript: StatusBarViewGeneratorColors.getForeColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/statusbarviewgeneratorcolors/getforecolor-method/llms-full.txt)
