Input Week type eigenschap
Definitie en gebruik
type
De eigenschap retourneert welk type formulierelement het veld week is.
Opmerking:In het volgende voorbeeld retourneren Opera, Chrome en Safari "week
", terwijl Internet Explorer en Firefox "text
"。
Voorbeeld
Terugkeer van het veld week is welk type formulierelement:
var x = document.getElementById("myWeek").type;
Syntax
weekObject.type
Technical details
Return value: | A string value representing the form element type of the week field. |
---|
Browser support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | 10.0 | Support | Support | Support |
Note:The <input type="week"> element does not display any date field/calendar in Firefox.