title: Get userinput in JavaScript
body: <p>I want to get user inputs using the  tag in HTML and not the prompt function in JavaScript.</p>
  
  <p>I also don't want to have to use another language on top of this like php.</p>
  
  <p><em>Edit</em>
  Something like this would be desirable</p>
  
  <pre><code>&lt;form action="demo_form.asp"&gt;
    First name: &lt;input type="text" name="fname"&gt;&lt;br&gt;
    &lt;input type="submit" value="Submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>but without using a .asp</p>