(^518) ❘ APPENDIX D EVENTS
event.cancelable
boolean
Indicates whether the event can be canceled.
event.clientX, event.clientY
integer
Provides x, y coordinates, indicating where the mouse cur-
sor is located relative to the window.
event.createEvent() Creates a new event, which must be initialized by calling
its init() method.
event.ctrlKey
boolean
Indicates whether the Control key is being pressed (Mac
and Windows).
event.currentTarget
object
The DOM element that is presently the target of the
event. Usually this refers to the same element as the this
keyword.
event.data An object passed to the function acting as an event han-
dler. See the data argument specifi ed for various methods
under “Event Handling” in the previous table.
event.defaultPrevented
boolean
Indicates whether the event.preventDefault() method
has been called.
event.detail
integer
A numeric property that indicates how many times a
mouse has been clicked in the same location. Applies to
the click, dblclick, mousedown, and mouseup events.
event.delegateTarget A reference to the element the event handler is ultimately
attached to.
event.eventPhase
integer
A numeric property that indicates the phase of the event
execution process.
event.NONE = 0
event.CAPTURING_PHASE = 1
event.AT_TARGET = 2
event.BUBBLING_PHASE = 3
(continued)
http://www.it-ebooks.info
elliott
(Elliott)
#1