title: Retrieve form's "name" attribute in Javascript whereas an input exists with name "name"
body: <p>I have something like this HTML structure :</p>
  
  <pre><code>   &lt;form name="myvalue" id="hello"&gt;
        &lt;input type="text" name="name" /&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>I'd like to retrieve the form's name attribute in Javascript, with a cross browser solution.</p>
  
  <p>Obviously, </p>
  
  <pre><code>document.getElementById("hello").name 
  </code></pre>
  
  <p>won't work because it will return the corresponding input object.</p>
  
  <p>Under chrome, following code works, but I didn't succeeded to find the equivalent for Internet Explorer 8</p>
  
  <pre><code>document.getElementById("hello").getAttribute("name")
  </code></pre>
  
  <p>Thanks in advance !</p>
  
  <p>Frédéric</p>