title: js get tag with same tagName
body: <p>Is there a way to get the collection of tags that have the same name?</p>
  
  <p>Somenthing like:</p>
  
  <pre><code>var buttons = document.getElementsByTagName('button');
  for (var a = 0; a &lt; buttons['item-menu-edit-button'].length; a++) {
    sys.addEventHandler(buttons['item-menu-edit-button'][a], 'click', callback);
  }
  </code></pre>
  
  <p>I need to assign an event handler to every edit button...</p>
  
  <p>[edit]
  the html markup is:</p>
  
  <pre><code>&lt;span&gt;
  &lt;button name="item-menu-edit-button" id="generiID"&gt;Edit&lt;/button&gt;
  &lt;!-- content --&gt;
  &lt;/span&gt;
  &lt;span&gt;
  &lt;button name="item-menu-edit-button" id="generiID"&gt;Edit&lt;/button&gt;
  &lt;!-- other content --&gt;
  &lt;/span&gt;
  </code></pre>
  
  <p>I need to assign an event handler for "click" events on every button named "item-menu-edit-button".</p>