🔰Event

browser ⟩ event

the object that

  • is asscociated with a particular event

  • contains details about that event

  • is passed as an argument to the event handler.

properties of an Event object

  • type (string) - event.type.

  • target (EventTarget) - object on which the event occurred. (event.target)

  • currentTarget (EventTarget) - the object on which the current handler was registered. (in the handler, this === event.currentTarget.)

  • timeStamp - relative timestamp (in ms).

  • isTrusted - event dispatched by browser (true) or script (false).

Last updated