title: How to call JavaScript function instead of href in HTML
body: <p>I have some mockup in HTML</p>
  
  <pre><code>&lt;a href="javascript:ShowOld(2367,146986,2)"&gt;&lt;img title="next page" alt="next page" src="/themes/me/img/arrn.png"&gt;&lt;/a&gt;
  </code></pre>
  
  <p>I got the response from server when I sent the request.</p>
  
  <p>With this mockup I got as a response of AJAX request that sends my code to server.</p>
  
  <p>Well, everything is fine but when I click on the link the browser wants to open the function as link; meaning after click I see the address bar as </p>
  
  <pre><code>javascript:ShowOld(2367,146986,2)
  </code></pre>
  
  <p>means browser thing that's url if I want to do this in firebug that's work. Now I want to do that then when anyone clicks the link then the browser tries to call the function already loaded in the DOM instead of trying to open them in browser.</p>