var inputValue = document.getElementById("myTextInputID").value;
<input id="word"> var word = document.getElementById("word").value;