Input Time type eigenschap
Definitie en gebruik
type
De eigenschap retourneert van welk type formulierelement het tijdveld is.
Opmerking:In het volgende voorbeeld retourneren Opera, Chrome en Safari "time
", terwijl Internet Explorer/Edge en Firefox "text
".
Voorbeeld
De retour van het tijdveld is van welk type formulierelement?:
var x = document.getElementById("myTime").type;
Syntax
timeObject.type
Technical details
Return value: | A string value that represents the form element type of the time field. |
---|
Browser support
The numbers in the table indicate the first browser version to fully support this property.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | 10.0 | Support | Support | Support |
Note:The <input type="time"> element does not display as any time field in Firefox.