making a variable in javascript from an html input code example
Example: using html forms to define javascript variables
var firstName = document.getElementsByName("firstname")[0].value;
var firstName = document.getElementsByName("firstname")[0].value;