title: url link to activate a javascript function once the page has loaded
body: <p>I have a page where various javascript functions shows different part of an array.</p>
  
  <p>The code I use to select what information to display is:</p>
  
  <pre><code>&lt;a href="#" onClick="x(ncode1);"&gt;
  &lt;a href="#" onClick="x(ncode2);"&gt;
  </code></pre>
  
  <p>Clicking the a tag will activate the function x(ncode).  The page default loads to x(ncode1).   When x(ncode2) is activated, the url naturally changes to site.com/#  </p>
  
  <p>If I want to make a link direct to the x(ncode2) display, I understand I need to link to the page and activate the javascript function once the page has loaded.  How so I do this?</p>