title: how to detect when a user clicks on an option in a drop down menu (select tag)
body: <p>I have a select and I want to run a different javascript function depending on what they select when they click it in the menu.  My googling has been unfruitful, can anyone direct me to the correct property? (for example, I know that onclick works well with buttons).  Thanks in advance for any help!</p>
  
  <p>EDIT: onchange doesn't work in my code.</p>
  
  <pre><code>&lt;head&gt;
      &lt;script&gt;
          function goToDelete(){
              document.write("Death to this webpage!")
          }
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;form id="checkboxes" method="post" action="someurl"&gt;
      &lt;tr&gt;
          &lt;td&gt;&lt;input type="checkbox" name="Selection"/&gt;&lt;/td&gt;
          &lt;td&gt;Some more rows to the table here&lt;/td&gt;
      &lt;/tr&gt;
      &lt;select name="action"&gt;
          &lt;option value="Delete" onchange="goToDelete()"&gt;Delete&lt;/option&gt;
      &lt;/select&gt;
  </code></pre>