I have the below jquery code to identify user actions on html page. This is getting triggered for user action on the page or due to script doing the click . How can I differentiate user action and action by the script?
User action is for example user click on the body . script action is, programatically doing onclick on some element of the page or just simple click on the html page .
$('body').click(function() {
console.log(new Date($.now()) + " :: " + "Body Click");
});
Thanks.