Password
JavaScript 1.0+, JScript 1.0+ Nav2+, IE 3+, Opera3+ Syntax
Core client-side JavaScript object.
Description
The Password object refers to the HTML element created with the <input> tag setting the type to specify password. It operates similarly to a standard HTML text input box as input is entered into the box. Instead of displaying the input in cleartext, input is displayed using the * symbol. Table 7.38 shows the different methods and properties of the Password object.
Property/Method | Description |
---|---|
blur() | Removes focus from the password box |
defaultValue | Refers to the VALUEattribute of the HTML password box |
focus() | Sets focus to the password box |
form | Refers to the form ... |
Get Pure JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.