<html>
<body>
<input type="hidden" id="myInput">
<p>Click the button below to find out which type of form element the hidden input field is.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
var x = document.getElementById("myInput").type;
document.getElementById("demo").innerHTML = x;
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_hidden_type by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 18:16:55 GMT -->
</html>