Input Number type eigenschap
Definitie en gebruik
type
De eigenschap retourneert welk type formulierelement het numerieke veld is.
Voor ingevoerde getallen, retourneert deze eigenschap altijd "number
".
Example
Returns which type of form element the numeric field is:
var x = document.getElementById("myNumber").type;
Syntax
numberObject.type
Technical details
Return value: | String value representing the form element type of a numeric field. |
---|
Browser support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | 10.0 | Support | Support | Support |