js get text from textbox code example Example: get string from textbox javascript <input id="word"> var word = document.getElementById("word").value;