title: OnClick without jQuery
body: <p>How to make <code>onclick</code> <strong>without</strong> jQuery, with no extra code in HTML, such as:</p>
  
  <pre><code>&lt;a href="#" onclick="tramtramtram"&gt;
  </code></pre>
  
  <p>Just using an external js file?</p>
  
  <pre><code>&lt;script type="text/javascript" src="functions.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <hr>
  
  <p>I need to replace this code:</p>
  
  <pre><code>$("a.scroll-up, a.scroll-down").click(function(){
      SNavigate($(this).attr("href").substr(7));return false;
  });
  </code></pre>