title: How to get all attributes of DOM element?
body: <p>How to copy all user defined attributes for a DOM element into an array? I Unsuccessfully tested to get <code>["type", "onClick",'value','id']</code> 
  See the following code</p>
  
  <p>Js</p>
  
  <pre><code> var obj=document.getElementById('input')/*.attributes*/,
       array=[],
       index=0;
       for(array[index++] in obj);
   console.log(array);
  </code></pre>
  
  <p>html</p>
  
  <pre><code>&lt;input type='button' onClick="Start()" id='input' value="Start"/&gt;
  </code></pre>