# Javascript: TextField.getContainsInputPosition Method

> Returns true, if the Textfield contains the current text input position.

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

---

### Description

Returns true, if the Textfield contains the current text input position.

### Syntax

```javascript
<void> TextField.getContainsInputPosition(<RequestBooleanCallback> callback, [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| callback | Receives whether the TextField contains the current text input position. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `TextField.getContainsInputPosition` in a practical document-editing workflow. It returns true, if the Textfield contains the current text input position.

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

function inspectContainsInputPosition(textField) {
    textField.getContainsInputPosition(
        function(result) {
            if (result) {
                console.log("get contains input position is available.");
            } else {
                console.warn("get contains input position is not available in the current document state.");
            }
        },
        onTxError
    );
}
```

---

## Nearby

- **Previous:** [Javascript: TextField.getBounds Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/textfield/getbounds-method/llms-full.txt)
- **Next:** [Javascript: TextField.getDeleteable Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/textfield/getdeleteable-method/llms-full.txt)
