# Javascript: TXTextControl.SaveSettings.userPassword Property

> Specifies the password for the user when the document is reopened.

- **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.userPassword Property
- **171 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-savesettings/userpassword-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-savesettings/userpassword-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-savesettings/userpassword-property/llms-full.txt

---

### Description

Specifies the password for the user when the document is reopened.

### Syntax

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

### Examples

The following example demonstrates `TXTextControl.SaveSettings.userPassword` in a practical document-editing workflow. It specifies the password for the user when the document is reopened.

```javascript
function inspectUserPassword(saveSettings) {
    const userPassword = saveSettings.userPassword;
    console.log("user password:", userPassword);
}
```

---

## Nearby

- **Previous:** [Javascript: TXTextControl.SaveSettings.saveDocumentBackColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-savesettings/savedocumentbackcolor-property/llms-full.txt)
- **Next:** [Javascript: TXTextControl.SectionBreakKind Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/sectionbreakkind-enumeration/llms-full.txt)
