The event object that is available in all event handlers. you can access it through the object event and it contains properties that provide information about the event.
Set to true if the alt key was pressed to invoke the event handler.
Set to true if the event is going to bubble up the element hierarchy. You can cancel this by calling the preventBubble method.
Set to the mouse button that was pressed to invoke a mouse event.
Set to true if the event can be cancelled.
Gets and sets the value of the charcode attribute.
The horizontal position of a mouse event on the window.
The vertical position of a mouse event on the window.
Set to true if the control key was pressed to invoke the event handler.
This will be set to the element that is currently receiving the event, which will vary as the bubbles through elements.
Contains additional information about the event. For mouse click events, this value will be set to the number of clicks that occured. Thus, the value will be 2 if the user double-clicks.
Set to true if the event is a key or text event.
Gets and sets the value of the keycode attribute.
Set to true if the meta key was pressed to invoke the event handler.
The original target of the event. This is used for elements that have bindings to get the element inside the binding that actually received the event.
The horizontal position on the document page when the event occured. This is not the same as the window position because the page may be larger than the window.
The vertical position on the document page when the event occured. This is not the same as the window position because the page may be larger than the window.
Call this function to prevent the bubbling of the event.
Call this function to prevent the capturing of the event.
The horizontal position on the screen of a mouse event.
The vertical position on the screen of a mouse event.
Set to true if the shift key was pressed to invoke the event handler.
Stops the event.
The target event. For mouse events this will be set to the element that was clicked on. For keyboard events this will be set to the element that has the focus. The target property is useful if a parent element is capturing events, so that you can tell which child element the event occured to.
The time the event occured as a number.
The event type such as click, keydown or focus.
The view (window) the event was passed to.