# Javascript: InputFormat.getFrameFillColor Method

> Gets the color used to display the frame fill color at the current input position.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 28.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: InputFormat.getFrameFillColor Method
- **320 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getframefillcolor-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getframefillcolor-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getframefillcolor-method/llms-full.txt

---

### Description

Gets the color used to display the frame fill color at the current input position.

### Syntax

```javascript
<void> InputFormat.getFrameFillColor(<RequestColorStringCallback> callback, [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| callback | Receives the color used to display the frame fill color at the current input position. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `InputFormat.getFrameFillColor` in a practical document-editing workflow. It gets the color used to display the frame fill color at the current input position.

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

TXTextControl.inputFormat.getFrameFillColor(
    function(color) {
        console.log("get frame fill color result:", color);
    },
    onTxError
);
```

---

## Nearby

- **Previous:** [Javascript: InputFormat.getFontSize Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getfontsize-method/llms-full.txt)
- **Next:** [Javascript: InputFormat.getFrameLineColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/inputformat/getframelinecolor-method/llms-full.txt)
