get the vlue of a text box after created code example
Example: get string from textbox javascript
<input id="word">
var word = document.getElementById("word").value;
<input id="word">
var word = document.getElementById("word").value;