# Javascript: InputPosition.setInactiveMarker Method

> Sets whether the current text input position when the TextControl is inactive and the blinking caret is not visible.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 28.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: InputPosition.setInactiveMarker Method
- **373 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/inputposition/setinactivemarker-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/inputposition/setinactivemarker-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/inputposition/setinactivemarker-method/llms-full.txt

---

### Description

Sets whether the current text input position when the TextControl is inactive and the blinking caret is not visible.

### Syntax

```javascript
<void> InputPosition.setInactiveMarker(<Boolean> isInactive, <EmptyRequestCallback> callback, [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| isInactive | Specifies whether the current text input position when the TextControl is inactive and the blinking caret is not visible. |
| callback | Is called when the operation completed. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `InputPosition.setInactiveMarker` in a practical document-editing workflow. It sets whether the current text input position when the TextControl is inactive and the blinking caret is not visible.

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

TXTextControl.inputPosition.setInactiveMarker(
    true,
    function() {
        console.log("set inactive marker completed.");
    },
    onTxError
);
```

---

## Nearby

- **Previous:** [Javascript: InputPosition.scrollTo Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/inputposition/scrollto-method/llms-full.txt)
- **Next:** [InputPositionChangedCallback Function](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/inputpositionchangedcallback/llms-full.txt)
