Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
Enter a week between Week 12 and Week 19 in 2014:
<input type="week" id="myWeek" min="2014-W12" max="2014-W19">
<p>Click the button to display the value of the min attribute of the week field.</p>
<button onclick="myFunction()">Try it</button>
<hr>
<%method="shadowOffset"%>
<!-- #include file="inc_support_ie9.inc" -->
<hr>
<p id="demo"></p>
<script>
function myFunction() {
  var x = document.getElementById("myWeek").min;
  document.getElementById("demo").innerHTML = x;
}
</script>
</body>
</html>