title: How to use javascript click method with modifiers (ctrl, shift)
body: <p>I need to trigger an ajax-ed element by javascript method:</p>
  
  <pre><code>&lt;h:panelGrid id="g" columns="1" onmouseover="window.document.getElementById(aa).click()"&gt;
  </code></pre>
  
  <p>and it works, except that it doesn't recognize the modifiers.</p>
  
  <p>I looked here <a href="http://www.w3schools.com/jsref/met_html_click.asp" rel="nofollow">http://www.w3schools.com/jsref/met_html_click.asp</a> and modified the <em>try it yourself</em> to look like</p>
  
  <pre><code>&lt;input type="checkbox" id="myCheck" onmouseover="myFunction(event)" onclick="alert('click event occured '+event.ctrlKey)"&gt;
  </code></pre>
  
  <p>but <code>ctrlKey</code> always is <code>false</code>.</p>
  
  <p>Is there a way to persuade the click-method to use and forward the modifiers?</p>
  
  <p>Edit: to clarify the "moused" object and the object that should send the ajax-request are different!</p>