# Javascript: TXTextControl.SaveSettings.documentTitle Property

> Sets the document's title that will be saved in the document.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 28.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: TXTextControl.SaveSettings.documentTitle Property
- **173 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-savesettings/documenttitle-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-savesettings/documenttitle-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-savesettings/documenttitle-property/llms-full.txt

---

### Description

Sets the document's title that will be saved in the document.

### Syntax

```javascript
<string> TXTextControl.SaveSettings.documentTitle
```

### Examples

The following example demonstrates `TXTextControl.SaveSettings.documentTitle` in a practical document-editing workflow. It sets the document's title that will be saved in the document.

```javascript
function inspectDocumentTitle(saveSettings) {
    const documentTitle = saveSettings.documentTitle;
    console.log("document title:", documentTitle);
}
```

---

## Nearby

- **Previous:** [Javascript: TXTextControl.SaveSettings.documentSubject Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-savesettings/documentsubject-property/llms-full.txt)
- **Next:** [Javascript: TXTextControl.SaveSettings.flattenFormFields Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-savesettings/flattenformfields-property/llms-full.txt)
