title: How to use document.getElementByName and getElementByTag?
body: <pre><code> document.getElementById('frmMain').elements
  </code></pre>
  
  <p>can i use like this </p>
  
  <pre><code>document.getElementByName('frmMain').elements 
  </code></pre>
  
  <p>or </p>
  
  <pre><code>document.getElementBytag('table').elements`
  </code></pre>