HTML | DOM Input Password type Property
The DOM Input Password type Property is used for returning which type of form element a password field is. This property will always return”password” for an input password field.
Return Value: It returns a string value which represent the type of form element the password field is.
Below program illustrates the Email type property :
Example: Returning the type of form element the Email field is.
Before clicking on the button:
After clicking on the button:
Supported Browsers: The browser supported by DOM input Password type Property are listed below:
- Google Chrome
- Internet Explorer
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.