title: from HTML send an event plus variable to JS function
body: <p>I want to send a mouse event and a variable to a JS function from within my html code, i can send the event fine but the problem is sending the event AND a variable. I have included a stripped down version of what I am trying to do. The browser is chrome. Can anyone offer some advice please ??` </p>
  
  <pre><code>function mouseDown(e,w) {
  var ctrlPressed=0;
  var evt = navigator.appName=="Netscape" ? e:event;
  
  ctrlPressed =evt.ctrlKey;
  self.status="" +"ctrlKey=" +ctrlPressed 
  
      if (ctrlPressed) 
      alert ("Mouse clicked with Ctrl/n and the variable is " + w )
      return true;
  }
  
  &lt;/script&gt;
  &lt;body&gt;
  
  &lt;table border = "1" &gt;
  &lt;tr&gt; 
  &lt;td onmousedown="mouseDown(e,\"variable\")"&gt; Link 1 &lt;/td&gt;
  &lt;td&gt; Link 2 &lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;/table&gt; 
  &lt;/body&gt;`
  </code></pre>