Determine if a jQuery Click Event Was Triggered by a User or a Script Calling the .click() Method Nov 13th, 2010 1 2 3 4 5 6 7 $('.button').click(function(e) { if (e.originalEvent) { // user click } else { // .click() }; }); Source chiel’s comment on the jQuery API