# Javascript: TXTextControl.LoadSettings.userPassword Property

> Specifies the password for the user to open a password protected 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.LoadSettings.userPassword Property
- **174 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-loadsettings/userpassword-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-loadsettings/userpassword-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-loadsettings/userpassword-property/llms-full.txt

---

### Description

Specifies the password for the user to open a password protected document.

### Syntax

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

### Examples

The following example demonstrates `TXTextControl.LoadSettings.userPassword` in a practical document-editing workflow. It specifies the password for the user to open a password protected document.

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

---

## Nearby

- **Previous:** [Javascript: TXTextControl.LoadSettings.reportingMergeBlockFormat Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-loadsettings/reportingmergeblockformat-property/llms-full.txt)
- **Next:** [Javascript: TXTextControl.loadXMLDatabase Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/loadxmldatabase-method/llms-full.txt)
