How To Check If Javascript Event Was Triggered By Human

Posted by Weston Ganger

Sometimes you may want to check if the javascript event was triggered by a human. Turns out that e.orginalEvent is only defined if the event was human triggered.

  if(e.originalEvent === undefined){
    // triggered by code
    // triggered by human

Related External Links:

Article Topic:Software Development - Javascript

Date:March 07, 2017

Recommended Posts



Send Me A Message

I would love to get in touch and talk about your next project. Feel free to send a message and I will get back to you shortly.

Get Connected