Input Password type eigenschap
Definitie en gebruik
type
De eigenschap retourneert welk type formulierelement het wachtwoordveld is.
Voor het wachtwoordveld, deze eigenschap retourneert altijd "password
".
Example
Find out which type of form element the password field belongs to:
var x = document.getElementById("myPsw").type;
Syntax
passwordObject.type
Technical details
Return value: | String value, form element type of password field. |
---|
Browser support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | 10.0 | Support | Support | Support |