Event

Example

1

Description

Properties

Property Name Description
altKey whether alt key was pressed during the event
bubbles whether the event bubbles up through the DOM
button which mouse button was clicked during the event
cancelable whether event can be canceled
clientX x coordinate of the mouse pointer at time of event, relative to window
clientY y coordinate of the mouse pointer at time of event, relative to window
ctrlKey whether control key was pressed during the event
currentTarget which element's listeners triggered the event
eventPhase which phase of the event flow is currently being evaluated
metaKey whether meta key was pressed during the event
onblur
onchange
onclick
ondblclick
onerror
onfocus
onkeydown
onkeypress
onkeyup
onmousedown
onmousemove
onmouseout
onmouseover
onmouseup
onresize
onselect
onunload
relatedTarget element related to the element that triggered the event (if any)
screenX x coordinate of the mouse pointer at time of event, relative to screen
screenY y coordinate of the mouse pointer at time of event, relative to screen
shiftKey whether shift key was pressed during the event
target element that triggered the event
timeStamp time stamp of the event, in milliseconds
type type of event

Methods

Method Name Description Values