Is it possible to determine whether a given JavaScript action is triggered by a user? For example, I want to know if a link was clicked by a user or the jQuery fire event method?
event.which will be undefined if the event is fired with code.
event.which
undefined
jsFiddle .
Source: https://habr.com/ru/post/887706/More articles:IOS: disabled UItextfield - iosFacebook FBConnect fbDialogLogin method on Facebook.m hits EXC_BAD_ACCESS on FBSessionDelegate object _sessionDelegate - iosLinkedin Ruby Gem (Token Rejected in Callback) - ruby | fooobar.comRewriteRule forces page to reload twice - url-rewritingFocus on NSTextView - cocoaRace Condition for Persistent Remember Me Cookies - authenticationstatic value in web.config - asp.netDifferences in programming between iPhone and iPad - objective-cHow to unify command line arguments? - pythonTriggers in XAML - c #All Articles