title: How to check if a button is clicked in JavaScript
body: <p>How to check if a button is clicked or not in prototype JavaScript?</p>
  <pre class="lang-js prettyprint-override"><code>$('activateButton').observe('click', function(event) {
    alert(hi);
  });
  </code></pre>
  <p>The code above is not working.</p>