Verwenden von HTML -Formularen zur Definition von JavaScript -Variablen
var firstName = document.getElementsByName("firstname")[0].value;
Foolish Ferret
var firstName = document.getElementsByName("firstname")[0].value;