Netscape 6, Part III: The Event Model: The e Object's Properties - Doc JavaScript | WebReference

Netscape 6, Part III: The Event Model: The e Object's Properties - Doc JavaScript


Netscape 6, Part III: The Event Model

The e Object's Properties

PropertyDescriptionPossible Values
altKeyA Boolean that indicates whether the Alt key was pressed when triggering the event.A Boolean
bubblesA Boolean that determines whether the event did continue to bubble up the hierarchy or not.A Boolean
buttonThe mouse button that triggered the event.A string: "left", "right", or "middle"
cancelableA Boolean that determines whether the event is cancelable or not. Some events are not cancelable.A Boolean
cancelBubbleA Boolean that determines whether the event should continue to bubble up the hierarchy.A Boolean
ctrlKeyA Boolean that indicates whether the Ctrl key was pressed when triggering the event.A Boolean
currentTargetThe object where the event currently is. Its event listener intercepted the event.An object
eventPhaseThe current phase of the event.0 (capture), 1 (the event just hit the target object), or 3 (bubbling).
keyCodeThe ASCII value of the key that triggered the event.An ASCII value
shiftKeyA Boolean that indicates whether the Shift key was pressed when triggering the event.A Boolean
targetThe event's target object. The object at which the event will turn around and bubble back up the hierarchy.An object
typeType of the occurred eventEvent names. Examples: "click", "mouseover", "mouseout".

Next: A Final Word

https://www.internet.com


Produced by Yehuda Shiran and Tomer Shiran
All Rights Reserved. Legal Notices.
Created: January 1, 2001
Revised: January 1, 2001

URL: https://www.webreference.com/js/column74/7.html