how to read from html input js code example
Example 1: Javascript get text input value
var inputValue = document.getElementById("myTextInputID").value;
Example 2: javascript input field
<!DOCTYPE html>
<html>
<body>
<input> Here is your inputfield </input>
</body>
</html>