title: difference between onclick and click in javascript
body: <p>Is there any kind of difference between the following two lines of code in javascript:</p>
  
  <pre><code>&lt;button id='btn1' onclick='do_this();'&gt;Button 1&lt;/button&gt;;
  
  &lt;button id='btn1' click='do_that();'&gt;Button 2&lt;/button&gt;;
  
  //some script later
  function do_this()
  {
      alert('this');
  }
  
  function do_that()
  {
      alert('that');
  }
  </code></pre>