control

control month :

The month type allows the user to select a month and year. Depending on browser support, a date picker can show up in the input field.

syntax <input type="month" name="name" > 

example :

Example
<input type="month"   id="inputMonth" >    : ماه مورد نظر خود را وارد نمایید 
 <br />
<input type="button" id="btn1" value="show month" onclick="showMonth()" />
 <br /> <br />
<div id="MyDiv"> </div>

<script type="text/javascript">
    function showMonth() {
         document.getElementById("MyDiv").innerHTML = "Month is : " +  document.getElementById("inputMonth").value;
      }
</script>
output
    :type month

Copyright 2014. All rights reserved.