Input Week type property
Example
Return the form element type of the week field:
var x = document.getElementById("myWeek").type;
xOutput value:
week
Try it »
Definition and Usage
The type property returns the form type of the week field.
**Note:** In the examples above, Opera, Chrome, and Safari browsers return "week", but Internet Explorer and Firefox browsers return "text".
Browser support





All major browsers support the type property
Note: Internet Explorer or Firefox browsers do not support .
Syntax
weekObject
.type
Technical Details
| Return Value: | A string representing the form element type of the week field |
|---|
The Input Week object