# Javascript: FrameInfo.textPosition Property

> The frame's character position in the document's text (one-based).

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 28.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: FrameInfo.textPosition Property
- **175 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/frameinfo/textposition-property/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/frameinfo/textposition-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/frameinfo/textposition-property/llms-full.txt

---

### Description

The frame's character position in the document's text (one-based).

### Syntax

```javascript
<Number> FrameInfo.textPosition
```

### Examples

The following example demonstrates `FrameInfo.textPosition` in a practical document-editing workflow. The frame's character position in the document's text (one-based).

```javascript
function inspectTextPosition(frameInfo) {
    const textPosition = frameInfo.textPosition;
    console.log("text position:", textPosition);
}
```

---

## Nearby

- **Previous:** [Javascript: FrameInfo.name Property](https://docs.textcontrol.com/ds-server/reference/javascript/frameinfo/name-property/llms-full.txt)
- **Next:** [GetDictionaryListCallback Function](https://docs.textcontrol.com/ds-server/reference/javascript/getdictionarylistcallback/llms-full.txt)
