Input Month type Attribute
Definition and Usage
type
The property returns the type of form element for the month field.
Tip:In the above example, Firefox returns "text
"while other browsers return "month
".
Example
Returns which type of form element the month field is:
var x = document.getElementById("myMonth").type;
Syntax
monthObject.type
Technical Details
Return Value: | A string value representing the form element type of the month field. |
---|
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Supported | 10.0 | Not Supported | Supported | Supported |