title: called the javascript function onload and on button click?
body: <p>i found this javascript is called by  a button
  but i want it to be onload at the same time , when button click it will call this javscript as well
   but i not sure how? hopefully anyone of you can help out</p>
  
  <pre><code> function AddFileUpload()
          {
               var div = document.createElement('DIV');
               div.innerHTML = '&lt;input id="file' + counter + '" name = "file' + counter + '" type="file" /&gt;&lt;input id="Button' + counter + '" type="button" value="Remove" onclick = "RemoveFileUpload(this)" /&gt;';
               document.getElementById("FileUploadContainer").appendChild(div);
               counter++;
          }
  </code></pre>