1<label for="name">Name (4 to 8 characters):</label>
2
3<input type="text" id="name" name="name" required
4 minlength="4" maxlength="8" size="10">
1//HTML Textbox w/Getting Javascript Input:
2<script>
3 function getTextBox(){
4 var k = document.getElemntById('myTextBox').value
5 alert(k)
6 }
7</script>
8<input type="text" id="myTextBox">
9<button onclick="getTextBox()">Get Text Input</button>