Interface JQueryEventObject

deprecated

Hierarchy

Index

Properties

AT_TARGET

AT_TARGET: number

BUBBLING_PHASE

BUBBLING_PHASE: number

CAPTURING_PHASE

CAPTURING_PHASE: number

NONE

NONE: number

altKey

altKey: boolean

bubbles

bubbles: boolean

Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise.

button

button: number

cancelBubble

cancelBubble: boolean

cancelable

cancelable: boolean

char

char: any

charCode

charCode: number

clientX

clientX: number

clientY

clientY: number

composed

composed: boolean

Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.

ctrlKey

ctrlKey: boolean

currentTarget

currentTarget: Element

The current DOM element within the event bubbling phase.

see

https://api.jquery.com/event.currentTarget/

data

data: any

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

see

https://api.jquery.com/event.data/

defaultPrevented

defaultPrevented: boolean

delegateTarget

delegateTarget: Element

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

see

https://api.jquery.com/event.delegateTarget/

eventPhase

eventPhase: number

isTrusted

isTrusted: boolean

Returns true if event was dispatched by the user agent, and false otherwise.

key

key: any

keyCode

keyCode: number

metaKey

metaKey: boolean

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

see

https://api.jquery.com/event.metaKey/

namespace

namespace: string

The namespace specified when the event was triggered.

see

https://api.jquery.com/event.namespace/

offsetX

offsetX: number

offsetY

offsetY: number

originalEvent

originalEvent: Event

The browser's original Event object.

see

https://api.jquery.com/category/events/event-object/

pageX

pageX: number

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

see

https://api.jquery.com/event.pageX/

pageY

pageY: number

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

see

https://api.jquery.com/event.pageY/

relatedTarget

relatedTarget: Element

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

see

https://api.jquery.com/event.relatedTarget/

result

result: any

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

see

https://api.jquery.com/event.result/

returnValue

returnValue: boolean

screenX

screenX: number

screenY

screenY: number

shiftKey

shiftKey: boolean

srcElement

srcElement: EventTarget | null
deprecated

target

target: Element

The DOM element that initiated the event.

see

https://api.jquery.com/event.target/

timeStamp

timeStamp: number

Returns the event's timestamp as the number of milliseconds measured relative to the time origin.

type

type: string

Returns the type of event, e.g. "click", "hashchange", or "submit".

which

which: number

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

see

https://api.jquery.com/event.which/

Methods

composedPath

  • composedPath(): EventTarget[]
  • Returns EventTarget[]

initEvent

  • initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void
  • Parameters

    • type: string
    • Optional bubbles: boolean
    • Optional cancelable: boolean

    Returns void

isDefaultPrevented

  • isDefaultPrevented(): boolean

isImmediatePropagationStopped

  • isImmediatePropagationStopped(): boolean

isPropagationStopped

  • isPropagationStopped(): boolean

preventDefault

  • preventDefault(): any

stopImmediatePropagation

  • stopImmediatePropagation(): void

stopPropagation

  • stopPropagation(): void