title: Onclick function does not work when doing function call
body: <p>I have a button that does not call the function when the button is clicked. The <code>onclick</code> function can display an alert window but does not run the function call.</p>
  
  <pre><code>...
     &lt;fieldset&gt;
          &lt;legend&gt;Billing Information&lt;/legend&gt;
          &lt;label for="name2"&gt;Name:&lt;/label&gt;&lt;br&gt;
          &lt;input type="text" id="name2" name="full_name"&gt;&lt;br&gt;
          &lt;label for="zip2"&gt;Zip code:&lt;/label&gt;&lt;br&gt;
          &lt;input type="text" id="zip2" name="zip_code"&gt;
     &lt;/fieldset&gt;
     &lt;button type="button" onclick="clear()"&gt;Verify&lt;/button&gt;
  ...
  &lt;script&gt;
      function clear() {
          document.getElementById("name1").value = "";
          document.getElementById("zip1").value = "";
          document.getElementById("name2").value = "";
          document.getElementById("zip2").value = "";
      }
  ...
  &lt;/script&gt;
  </code></pre>
  
  <p>So this works:</p>
  
  <pre><code>   &lt;button type="button" onclick="alert("Hello")"&gt;Verify&lt;/button&gt;
  </code></pre>
  
  <p>But the function <code>clear</code> does not work. I don't see why this doesn't work.</p>