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