title: How do you get form property when input has same name
body: <p>I'm working with form and asking for the <code>target</code> attribute - expecting in the following example it would be <code>_blank</code>.</p>
  
  <pre><code>&lt;form action="demo_form.asp" method="get" target="_blank"&gt;
      First name: &lt;input type="text" name="target"&gt;&lt;br&gt;
      Last name: &lt;input type="text" name="lname"&gt;&lt;br&gt;
      &lt;input type="submit" value="Submit"&gt;
      &lt;input type="hidden" name="accessKey" value="somwhere" class=""&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Instead the <code>form.target</code> is a reference to the <code>input</code> with name <code>target</code>. </p>
  
  <p>This is visible in the chrome debugger, but other named items like <code>lname</code> above don't appear, <code>form.lname</code> does give the <code>lname</code> input however.</p>
  
  <p>Is there some way to get <code>form.target</code> property and not the forms element named target? Or is it necessary to go to the <code>form.attributes</code> to get the source value?</p>