title: How to convert this onclick() function to onload()
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1098019/how-to-make-onclick-automatically-through-onload-function">How to make onclick automatically through onload function</a>  </p>
  </blockquote>
  
  
  
  <p>So I have the following function which is being called when I click a button.
  Here is the code:</p>
  
  <pre><code>&lt;a href="#" role="button" onClick="myFunction('parameter')"&gt;
  </code></pre>
  
  <p>How can I call this function as soon as page is loaded?
  I tried onLoad function but doesn't seem to work.</p>