author avatar

amit

Mon Dec 09 2019

use Event,isTrusted to know whether the triggered event is authentic(user triggered) or through a script: https://developer.mozilla.org/en-US/docs/Web/API/Event/isTrusted