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 »

Description

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
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.