title: Give the JavaScript the button's id
body: <p>In my JavaScript code, I have to make a line like this (I use smarty template engine, that is the literal stuff).</p>
  
  <pre><code>&lt;script language="javascript" type="text/javascript"&gt;
      function ajaxTextKill() {
          // ...etc.
          ajaxRequest.open("GET", "functions.php?action=kill{/literal}&amp;id="+IWANTMYIDHERE+"&amp;p={$smarty.get.page}&amp;c={$smarty.get.sel}{literal}", true);
          ajaxRequest.send(null);
      }
  </code></pre>
  
  <p>After this in my HTML code, </p>
  
  <pre><code>&lt;input type="button" id="87" value="del" onClick="return ajaxTextKill();" /&gt;
  </code></pre>
  
  <p>I'd like to give the JavaScript the input's id value. How to do this?</p>