Find out if a specific event is trusted:
The isTrusted event property returns a Boolean value indicating whether the event is trusted or not.
The isTrusted property is currently only supported in Firefox and Internet Explorer.
Note: In Firefox, the event is trusted if it is invoked by the user, and not trusted if it is invoked by a script. In IE, all events are trusted except those that are created with the createEvent() method.
The numbers in the table specify the first browser version that fully supports the property.
Property | |||||
---|---|---|---|---|---|
isTrusted | Not supported | 9.0 | Yes | Not supported | Not supported |
Return Value: | A Boolean, indicating whether the event is trusted or not
Possible values:
|
---|---|
DOM Version: | DOM Level 3 Events |