title: changing the value of "onclick" of a td from javascript
body: <p>I am trying to change the value of "onclick" of a td from a function in javascript.
  I've tried everything i can think of and i've searched it on the internet but nothing worked, exept from this code below, but the problem with it is that it's executing what i want the value of onclick to be instead of changing it.</p>
  
  <pre><code>&lt;div align="center" id="bodyC"&gt;
  &lt;table width="800" height="410"&gt;
  &lt;td class="bodyCC"&gt;
      &lt;table id="MYtable" class="MYtable" border="0" width="100%" height="100%" cellpadding="50"&gt;
      &lt;td id="one" class="one" onclick=""&gt;&lt;/td&gt;
      &lt;td id="two" class="two" onclick=""&gt;&lt;/td&gt;
      &lt;td id="three" class="three" onclick=""&gt;&lt;/td&gt;
      &lt;/table&gt;
  &lt;/td&gt;
  &lt;/table&gt;
  &lt;/div&gt;
  
  
  function download()
  {
  &lt;!-- this function is called when the "Download" button on the website's menu is pressed, and is soppused to change the "body" table so when the sells are clicked an alert will pop.--&gt;
  document.getElementById('one').onclick=alert("A..!");
  document.getElementById('two').onclick=alert("B..!");
  document.getElementById('three').onclick=alert("C..!");
  }
  </code></pre>
  
  <p>any help?</p>
  
  <p>p.s. there are no errors.</p>