# Javascript: DocumentTargetInfo.targetName Property

> The name of the document target.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 28.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: DocumentTargetInfo.targetName Property
- **155 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/documenttargetinfo/targetname-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/documenttargetinfo/targetname-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/documenttargetinfo/targetname-property/llms-full.txt

---

### Description

The name of the document target.

### Syntax

```javascript
<string> DocumentTargetInfo.targetName
```

### Examples

The following example demonstrates `DocumentTargetInfo.targetName` in a practical document-editing workflow. The name of the document target.

```javascript
function inspectTargetName(documentTargetInfo) {
    const targetName = documentTargetInfo.targetName;
    console.log("target name:", targetName);
}
```

---

## Nearby

- **Previous:** [DocumentTargetInfo Object](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/documenttargetinfo/llms-full.txt)
- **Next:** [DrawingCallback Function](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/drawingcallback/llms-full.txt)
