title: Inline JavaScript onclick function
body: <p>Is there a way to write following code inline like so?</p>
  
  <pre><code>&lt;a href="#" onClick="function(){
      //do something;
      return false;
  };return false;"&gt;&lt;/a&gt;
  </code></pre>
  
  <p>Instead of doing this:</p>
  
  <pre><code> &lt;a href="#" onClick="doSomething(); return false;"&gt;&lt;/a&gt;
  
   function doSomething(){
      //do something;
   }
  </code></pre>