HTML | DOM Input Month form Property
The Input Month form property is used for returning a reference to the form that contains the Month field. It is a read-only property. Syntax:
Return Value: It returns a form object on success, else if the Month field is not in the form, it returns NULL.
Below program illustrates the Month form property:
Example: Returning the name of the form containing the element.
Before clicking on the button:
After clicking on the button:
Supported Browsers: The browser supported by DOM Input Month form Property are listed below:
- Google Chrome 20 and above
- Edge 12 and above
- Opera 11 and above
Note: In Firefox, the input type=”month” element does not show any date field or calendar.