The DOM Input Week type Property is used for returning which type of form element a week field is.
Return Value: It returns a string value which represent the type of form element the week field is.
Below program illustrates the Week type property:
Example: Returning the type of form element the Week field is.
Before clicking on the button:
After clicking on the button:
Supported Browsers: The browser supported by DOM input Week type Property are listed below:
- Google Chrome
- Internet Explorer 10.0 +
Note: In Firefox, the input type=”week” element does not show any date field or calendar.