HTML DOM Input Month type Property
THE WORLD'S LARGEST WEB DEVELOPER SITE

Input Month type Property

❮ Input Month Object

Example

Return which type of form element the month field is:

var x = document.getElementById("myMonth").type;
Try it Yourself »

Definition and Usage

The type property returns which type of form element the month field is.

Note: In the example above, Firefox returns "text", while the other browsers return "month".


Browser Support

Property
type Yes 10.0 Not supported Yes Yes

Syntax

monthObject.type

Technical Details

Return Value: A String, representing the type of form element the month field is

❮ Input Month Object