title: Javascript / jquery how to differentiate between a triggered and user click?
body: <p>this question looks similar like 
  <a href="https://stackoverflow.com/questions/6674669/in-jquery-how-can-i-tell-between-a-programatic-and-user-click">In Jquery, how can I tell between a programatic and user click?</a></p>
  
  <p>But i am not able to get it, my code</p>
  
  <pre><code>&lt;div class="sample_class" onclick="sample_fn(arg1,arg2,arg3,arg4, e);" &gt;&lt;/div&gt;
  &lt;div class="trigger_class" onclick="trigger_fn()&gt;&lt;/div&gt;
  
  
  function sample_fn(arg1,arg2,arg3,arg4, e){
      console.log(e) ;
      console.log(e.isTrigger);
      console.log(e.hasOwnProperty('originalEvent'));
  }
  
  
  function trigger_fn(){
      $(".sample_class").trigger("click")
  }
  </code></pre>
  
  <p>on click on div.sample_class i am getting in console 
  Object
  undefined
  false</p>
  
  <p>on clicking div.tigger_class i am getting in console same thing
  Object
  undefined
  false</p>
  
  <p>I am unable to differentiate between these two clicks. 
  Thanks in advance</p>