event.isTrusted property
event.isTrusted property - allows
you to check if an event is real (caused
by a user action) or simulated in
JavaScript using the
dispatchEvent
method. It receives the value of either
true (real) or false.
Syntax
event.isTrusted;
See also
-
the
currentTargetproperty
that defines the element on which an event was assigned -
the
targetproperty
that defines the element on which an event was assigned -
the
typeproperty
that shows an event type