input type=week element | input type=week object
Creates a week entry control.
![]() |
DOM Information
Inheritance Hierarchy
Node
Element
HTMLElement
input type=week
Members
The input type=week object has these types of members:
Events
The input type=week object has these events.
| Event | Description |
|---|---|
| oninvalid |
Provides specified alert text if an input element is invalid. |
Standards information
Remarks
Note Delivers a week string, such as
2015-W11, to represent the 11th week of the year 2015.Examples
This example uses the input type=week element to create an empty date control.
<input type="date" value="" name="userWeek">
See also
- Node
- Reference
- input
- validity
- formNoValidate
Show:
