Input Month type eigenschap

Definitie en gebruik

type De eigenschap retourneert het type van het formulierelement voor het maandsveld.

Tip:In het bovenstaande voorbeeld retourneert Firefox "text", terwijl andere browsers "month".

Example

Returns which type of form element the month field is:

var x = document.getElementById("myMonth").type;

Try it yourself

Syntax

monthObject.type

Technical details

Return value: 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