Prop Week Type
# Input Week type property
[ Input Week Object](#)
## Example
Returns the form element type of the week field:
var x = document.getElementById("myWeek").type;
The output value of _x_ is:
week
[Try it yourself Β»](#)
* * *
## Definition and Usage
The type property returns the form type of the week field.
**Note:** In the example above, Opera, Chrome, and Safari browsers return "week", but Internet Explorer and Firefox browsers return "text".
* * *
## Browser Support

The type property is supported by all major browsers.
**Note:** Internet Explorer or Firefox browsers do not support the element.
* * *
## Syntax
_weekObject_.type
## Technical Details
| Return Value: | A string representing the form element type of the week field |
| --- |
* * Input Week Object](#)
YouTip