title: Get list of all input objects using JavaScript, without accessing a form object
body: <p>I need to get all the <code>input</code> objects and manipulate the <code>onclick</code> param.</p>
  
  <p>The following does the job for <code>&lt;a&gt;</code> links. Looking for something like this for <code>input</code> tags.</p>
  
  <pre class="lang-js prettyprint-override"><code>for (var ls = document.links, numLinks = ls.length, i=0; i&lt;numLinks; i++){
    var link = unescape(ls[i].href);
    link = link.replace(/\\'/ig,"#");
    if(ls[i].href.indexOf("javascript:") == -1)
    {
      ls[i].href = "javascript:LoadExtern(\\""+link+"\\",\\"ControlPanelContent\\",true,true);";
    }
  }
  </code></pre>