title: How to pass a parameter to a dynamically set JavaScript function?
body: <p>Ok, I have one JavaScript that creates rows in a table like this:</p>
  <pre><code>  function AddRow(text,rowID) {
      var tbl = document.getElementById('tblNotePanel');
      var row = tbl.insertRow(tbl.rows.length);
  
      var cell = row.insertCell();
      var textNode = document.createTextNode(text);
      cell.id = rowID;
      cell.style.backgroundColor = &quot;gold&quot;;
  
      cell.onclick = clickTest;
      
      cell.appendChild(textNode);
    }
  </code></pre>
  <p>In the above function, I set the cell's <code>onclick</code> function to call another JavaScript function called <code>clickTest</code>.  My question is when I assign the <code>onclick</code> event to call <code>clickTest</code>, how do I set parameter information to be sent when the <code>clickTest</code> method is called on the cell's <code>onclick</code> event?  Or, how do I access the cell's ID in the <code>clickTest</code> function?</p>
  <p>Thanks,
  Jeff</p>