mozilla
Your Search Results

    Event.isTrusted

    This article is in need of a technical review.

    A boolean value indicating whether the event is trusted.

    Syntax

    var bool = event.isTrusted;
    

    Example

     if (e.isTrusted) {
         /* The event is trusted. */
     } else {
         /* The event is not trusted. */
     }
    

    Notes

    This property is supported differently in different browsers:

    • In Firefox, an event is trusted if it is invoked by the user and not trusted if it is invoked by a script.
    • In Internet Explorer, all events are trusted except those that are created with the createEvent() method.
    • Chrome does not support this property.

    Specification

    Document Tags and Contributors

    Contributors to this page: ziyunfei, kscarfone, teoli, fscholz, alicebeckett
    Last updated by: fscholz,