isTrusted Event Property in JavaScript
The isTrusted event property is used to return Boolean values indicating whether or not the event is trusted. We can say that event is trusted when invoked by user while untrusted when invoked by script.
Syntax:-
Its syntax is:- event.isTrusted
Return:-
Its return is:- true if the event is trusted else false