get user text input and save to a variable code example
Example: How to save input from box html
function getInputFromTextBox() {
var input = document.getElementById("userInput").value;
alert(input);
}
function getInputFromTextBox() {
var input = document.getElementById("userInput").value;
alert(input);
}