输入没有值可存储在var中
So the input in the form has the id "fname" and when i press submit, the function values() try to store the value in a var but it doesn't.
var fname = "sss";
function values() {
document.getElementById("fname").value = fname;
}
<form action="javascrip...