title: InnerHTML getting Div Name
body: <p>I am trying to get a name of a DIV</p>
  
  <pre><code>&lt;div id="test" name="info1" onclick="func(this.name)"&gt;This is div 1&lt;/div&gt;
  </code></pre>
  
  <p>but when I try to print out the name of the div using innerHTML is comes back as undefined. Can this be done or am i doing something wrong?</p>