spacer
Yehuda Shiran January 5, 2001
The Event Object Properties
Tips: January 2001

Yehuda Shiran, Ph.D.
Doc JavaScript

Developer News
News Flash: Adobe Has iPhone Workaround
Adobe's Flash 10.1 Goes Mobile (Minus iPhone)
A Salute to Visionary CEOs

The e object provides a wealth of information about the Netscape 6 event. Here is a list of its 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".


People who read this tip also read these tips:

Look for similar tips by subject:

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Building a Banking Application Home Page with OOP · Mixing Scripting Languages · Review: phpFox, a Social Networking CMS with all the Bells and Whistles
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Enterprise 2.0: Social Networking in the Cloud · BroadSoft Marketplace Hastens Pace of Telephony Innovation · Review: HTC Hero for Sprint