Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The input type=password object creates a single-line text entry control object and is similar to the text control, except that text is not displayed as a user enters it.
Properties
| Property | Data type | Access | Description |
|---|---|---|---|
| accesskey | String | Read/write | Sets or retrieves the number associated with the accesskey attribute.
Note Supported only for devices running Smartphone 2002 and Pocket PC 2002 software or later. |
| defaultValue | String | Read/write
Note Read-only for devices running Smartphone 2002 and Pocket PC 2002 software or earlier. |
Retrieves the default value (initial contents) of the input type=password control. |
| disabled | Boolean | Read/write | Sets or retrieves the value that indicates whether the user can interact with the object.
Note Supported only for devices running Smartphone 2002 and Pocket PC 2002 software or later. |
| form | Object | Read-only | Retrieves a reference to the form that the object is embedded in.
Note Supported only for devices running Smartphone 2002 and Pocket PC 2002 software or later. |
| maxLength | Long | Read/write | Sets or rerieves the maximum number of characters that the user can enter in a text control.
Note Supported only for devices running Smartphone 2002 and Pocket PC 2002 software or later. |
| name | String | Read-only | Sets or retrieves the name of the input type=password control.
Note Supported only for devices running Smartphone 2002 and Pocket PC 2002 software or later. |
| size | Long | Read-only | Sets or retrieves the size of the control.
Note Supported only for devices running Smartphone 2002 and Pocket PC 2002 software or later. |
| type | String | Read-only | Always returns — password. |
| value | String | Read/write | Sets or retrieves the value of the input type=password control. |
Events
| Event | Description |
|---|---|
| onchange | Occurs when the contents of the input type=password object have changed and the user has committed the change (by leaving the input type=password control that has focus). |
| onfocus | Occurs when an element receives focus either by the pointing device or by tabbing navigation.
Note Supported only for devices running Smartphone 2002 and Pocket PC 2002 software or later. |
| onblur | Occurs when an element loses focus either by the pointing device or by keypad navigation.
Note Supported only for devices running Smartphone 2002 and Pocket PC 2002 software or later. |
Methods
| Method | Syntax | Description |
|---|---|---|
| focus | password.focus | Sets focus to the input type=password control. |
| select | password.select | Not supported in Internet Explorer Mobile. |
Requirements
Pocket PC: Pocket PC 2000 and later
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
See Also
Internet Explorer Mobile HTML Objects
Send Feedback on this topic to the authors