title: Click source in JavaScript and jQuery, human or automated?
body: <p>We all know that you can simulate click or any other event on an element using one of these ways:</p>
  
  <pre><code>$('#targetElement').trigger('eventName');
  $('#targetElement').click();
  </code></pre>
  
  <p>I have encountered a situation in which, I should know how an element is clicked. I should know if it's been clicked automatically via code, or by pressing mouse button. Is there anyway I can do it without hacks or workarounds? I mean, is there anything built into browsers' event object, JavaScript, or jQuery that can tell us whether click has been initiated by a human action or by code?</p>