title: onclick event function in JavaScript
body: <p>I have some JavaScript code in an HTML page with a button. I have a function called <code>click()</code> that handles the <code>onClick</code> event of the button. The code for the button is as follows:</p>
  <pre><code>&lt;input type=&quot;button&quot; onClick=&quot;click()&quot;&gt;button text&lt;/input&gt;  
  </code></pre>
  <p>The problem is that when the button is clicked, the function is not called. What am I doing wrong here?</p>