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>