<html>
<body>
<input type="week" id="myWeek" value="1995-W35">
<p>Click the button to change the default value of the week field.</p>
<button type="button" onclick="myFunction()">Try it</button>
<p><strong>Note:</strong> input elements with type="week" are not supported in Internet Explorer or Firefox.</p>
<script>
function myFunction() {
document.getElementById("myWeek").defaultValue = "2014-W43";
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_week_defaultvalue by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 05 Sep 2022 15:53:06 GMT -->
</html>