sesaparcours
    Preparing search index...

    ​ Deprecated. Use JQuery.Event.

    interface BaseJQueryEventObject {
        AT_TARGET: 2;
        bubbles: boolean;
        BUBBLING_PHASE: 3;
        cancelable: boolean;
        cancelBubble: boolean;
        CAPTURING_PHASE: 1;
        composed: boolean;
        currentTarget: Element;
        data: any;
        defaultPrevented: boolean;
        delegateTarget: Element;
        eventPhase: number;
        isTrusted: boolean;
        metaKey: boolean;
        namespace: string;
        NONE: 0;
        originalEvent: Event;
        pageX: number;
        pageY: number;
        relatedTarget: Element;
        result: any;
        returnValue: boolean;
        srcElement: EventTarget | null;
        target: Element;
        timeStamp: number;
        type: string;
        which: number;
        composedPath(): EventTarget[];
        initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
        isDefaultPrevented(): boolean;
        isImmediatePropagationStopped(): boolean;
        isPropagationStopped(): boolean;
        preventDefault(): any;
        stopImmediatePropagation(): void;
        stopPropagation(): void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    AT_TARGET: 2
    bubbles: boolean

    The bubbles read-only property of the Event interface indicates whether the event bubbles up through the DOM tree or not.

    MDN Reference

    BUBBLING_PHASE: 3
    cancelable: boolean

    The cancelable read-only property of the Event interface indicates whether the event can be canceled, and therefore prevented as if the event never happened.

    MDN Reference

    cancelBubble: boolean

    The cancelBubble property of the Event interface is deprecated.

    MDN Reference

    CAPTURING_PHASE: 1
    composed: boolean

    The read-only composed property of the or not the event will propagate across the shadow DOM boundary into the standard DOM.

    MDN Reference

    currentTarget: Element

    The current DOM element within the event bubbling phase.

    <a href="https://api.jquery.com/event.currentTarget/">https://api.jquery.com/event.currentTarget/</a>

    data: any

    An optional object of data passed to an event method when the current executing handler is bound.

    <a href="https://api.jquery.com/event.data/">https://api.jquery.com/event.data/</a>

    defaultPrevented: boolean

    The defaultPrevented read-only property of the Event interface returns a boolean value indicating whether or not the call to Event.preventDefault() canceled the event.

    MDN Reference

    delegateTarget: Element

    The element where the currently-called jQuery event handler was attached.

    <a href="https://api.jquery.com/event.delegateTarget/">https://api.jquery.com/event.delegateTarget/</a>

    eventPhase: number

    The eventPhase read-only property of the being evaluated.

    MDN Reference

    isTrusted: boolean

    The isTrusted read-only property of the when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via The only exception is the click event, which initializes the isTrusted property to false in user agents.

    MDN Reference

    metaKey: boolean

    Indicates whether the META key was pressed when the event fired.

    <a href="https://api.jquery.com/event.metaKey/">https://api.jquery.com/event.metaKey/</a>

    namespace: string

    The namespace specified when the event was triggered.

    <a href="https://api.jquery.com/event.namespace/">https://api.jquery.com/event.namespace/</a>

    NONE: 0
    originalEvent: Event

    The browser's original Event object.

    <a href="https://api.jquery.com/category/events/event-object/">https://api.jquery.com/category/events/event-object/</a>

    pageX: number

    The mouse position relative to the left edge of the document.

    <a href="https://api.jquery.com/event.pageX/">https://api.jquery.com/event.pageX/</a>

    pageY: number

    The mouse position relative to the top edge of the document.

    <a href="https://api.jquery.com/event.pageY/">https://api.jquery.com/event.pageY/</a>

    relatedTarget: Element

    The other DOM element involved in the event, if any.

    <a href="https://api.jquery.com/event.relatedTarget/">https://api.jquery.com/event.relatedTarget/</a>

    result: any

    The last value returned by an event handler that was triggered by this event, unless the value was undefined.

    <a href="https://api.jquery.com/event.result/">https://api.jquery.com/event.result/</a>

    returnValue: boolean

    The Event property returnValue indicates whether the default action for this event has been prevented or not.

    MDN Reference

    srcElement: EventTarget | null

    The deprecated Event.srcElement is an alias for the Event.target property.

    MDN Reference

    target: Element

    The DOM element that initiated the event.

    <a href="https://api.jquery.com/event.target/">https://api.jquery.com/event.target/</a>

    timeStamp: number

    The timeStamp read-only property of the Event interface returns the time (in milliseconds) at which the event was created.

    MDN Reference

    type: string

    The type read-only property of the Event interface returns a string containing the event's type.

    MDN Reference

    which: number

    For key or mouse events, this property indicates the specific key or button that was pressed.

    <a href="https://api.jquery.com/event.which/">https://api.jquery.com/event.which/</a>

    Methods

    • The composedPath() method of the Event interface returns the event's path which is an array of the objects on which listeners will be invoked.

      MDN Reference

      Returns EventTarget[]

    • The Event.initEvent() method is used to initialize the value of an event created using Document.createEvent().

      Parameters

      • type: string
      • Optionalbubbles: boolean
      • Optionalcancelable: boolean

      Returns void

      MDN Reference

    • Returns whether event.preventDefault() was ever called on this event object.

      Returns boolean

      <a href="https://api.jquery.com/event.isDefaultPrevented/">https://api.jquery.com/event.isDefaultPrevented/</a>

    • Returns whether event.stopImmediatePropagation() was ever called on this event object.

      Returns boolean

      <a href="https://api.jquery.com/event.isImmediatePropagationStopped/">https://api.jquery.com/event.isImmediatePropagationStopped/</a>

    • Returns whether event.stopPropagation() was ever called on this event object.

      Returns boolean

      <a href="https://api.jquery.com/event.isPropagationStopped/">https://api.jquery.com/event.isPropagationStopped/</a>

    • If this method is called, the default action of the event will not be triggered.

      Returns any

      <a href="https://api.jquery.com/event.preventDefault/">https://api.jquery.com/event.preventDefault/</a>

    • Keeps the rest of the handlers from being executed and prevents the event from bubbling up the DOM tree.

      Returns void

      <a href="https://api.jquery.com/event.stopImmediatePropagation/">https://api.jquery.com/event.stopImmediatePropagation/</a>

    • Prevents the event from bubbling up the DOM tree, preventing any parent handlers from being notified of the event.

      Returns void

      <a href="https://api.jquery.com/event.stopPropagation/">https://api.jquery.com/event.stopPropagation/</a>