attribute describe
altKey Returns when an event is triggered ,”ALT” Is it pressed .
button Returns when an event is triggered , Which mouse button was clicked .
clientX Returns when an event is triggered , The horizontal coordinates of the mouse pointer .
clientY Returns when an event is triggered , The vertical coordinates of the mouse pointer .
ctrlKey Returns when an event is triggered ,”CTRL” Is the key pressed .
metaKey Returns when an event is triggered ,”meta” Is the key pressed .
relatedTarget Returns the node associated with the target node of the event .
screenX Returns when an event is triggered , The horizontal coordinates of the mouse pointer .
screenY Returns when an event is triggered , The vertical coordinates of the mouse pointer .
shiftKey Returns when an event is triggered ,”SHIFT” Is the key pressed .
  • IE  attribute ( Except for the mouse above / Event properties ,IE The browser also supports the following properties )
attribute describe
cancelBubble If the event handle wants to prevent the event from propagating to the containment object , The property must be set to true.
fromElement about mouseover and mouseout event ,fromElement Refer to elements that move out of the mouse .
keyCode about keypress event , This property declares the... Generated by the hit key Unicode Character code . about keydown and keyup
offsetX,offsetY The location of the event is in the coordinate system of the event source element x Coordinates and y coordinate .
returnValue If this property is set , Its value takes precedence over the return value of the event handle . Set this property to
srcElement For generating events Window object 、Document Object or Element References to objects .
toElement about mouseover and mouseout event , This attribute refers to the element moved into the mouse .
x,y The location of the event x Coordinates and y coordinate , They are relative to using CSS The innermost containment element of dynamic positioning .
  • standard Event attribute The following is listed 2 level DOM Properties defined by event standards
Properties and methods describe
bubbles Returns a Boolean value , Indicates whether the event is a bubbling event type .
cancelable Returns a Boolean value , Indicates whether the event has a cancelable default action .
currentTarget Returns the element whose event listener triggered the event .
eventPhase Back to the current stage of event propagation .
target Returns the element that triggered this event ( The target node of the event ).
timeStamp Returns the date and time the event was generated .
type Returns the current Event Object represents the name of the event .
initEvent() Initialize the newly created Event Object properties .
preventDefault() Notify the browser not to perform the default action associated with the event .
stopPropagation() No more incidents .