title: Turn HTML Form Input into JavaScript Variable
body: <p>I am new to HTML forms and I was wondering how I can easily (or not) change it's input to a JavaScript variable.  Here is my code:</p>
  
  <pre><code>&lt;head&gt;
  &lt;title&gt;Begin&lt;/title&gt;
  &lt;link type="text/css" rel="stylesheet" href="begin.css"/&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;form action="begin-create-done.html" method="get"&gt;
  First Name: &lt;input type="text" name="firstname"&gt;
  &lt;br&gt;
  Last Name: &lt;input type="text" name="lastname"&gt;
  &lt;br&gt;
  &lt;br&gt;
  New Username: &lt;input type="text" name="user"&gt;
  &lt;br&gt;
  Password: &lt;input type="password" name="pass"&gt;
  &lt;br&gt;
  Repeat Password: &lt;input type="password" name="rpass"&gt;
  &lt;input type="submit" value="Submit"&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I want each part of the form (e.x. First Name, Last Name, New Username, etc.) to be it's own JavaScript variable.  Thank you very much!</p>