Input Email type eigenschap
Definitie en gebruik
type
Eigenschap wat voor soort formulierelement het e-mailveld is.
Voor input type="email", zal deze eigenschap altijd "email
".
Voorbeeld
Wat voor soort formulierelement is het e-mailveld:
var x = document.getElementById("myEmail").type;
Syntax
emailObject.type
Technical details
Return value: | String value, representing the form element type of the email field. |
---|
Browser support
The numbers in the table indicate the first browser version that fully supports this property.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | 10.0 | Support | Support | Support |