Password type Property
Password Object
Definition and Usage
The type attribute returns the type of the form element.
For a password field, this property is always "password".
Syntax
passwordObject.type
Browser support





All major browsers support the type property.
Example
Example
The following example returns the form element type of the password field:
Try it »
Password Object