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

javascriptevent.isTrusted;

See also

  • the currentTarget property
    that defines the element on which an event was assigned
  • the target property
    that defines the element on which an event was assigned
  • the type property
    that shows an event type