↑
Main Page
screenX
Property/Method Type R/W Description
charCode
Integer R
The Unicode value of the character for the key that was
pressed
clientX
Integer R
The x-coordinate of the mouse pointer within the client
area (excludes toolbars, scrollbars, and so on) when the
event occurs
clientY
Integer R
The y-coordinate of the mouse pointer within the client
area (excludes toolbars, scrollbars, and so on) when the
event occurs
ctrlKey
Boolean R
True indicates the CTRL key is pressed; false indicates
it is not.
currentTarget
Element R
The element that is currently the event target
detail
Integer R
The number of times the mouse button has been
clicked
eventPhase
Integer R
The phase of the event, which is one of the following
values:
0 – capturing phase
1 – at target
2 – bubbling phase
isChar
Boolean R
Indicates if the key that was pressed has a character
associated with it
keyCode
Integer R/W Numeric indicator as to the key that was pressed
metaKey
Integer R
Indicates if the META key has been pressed
pageX
Integer R
The x-coordinate of the mouse pointer relative to
the page
pageX
Integer R
The y-coordinate of the mouse pointer relative to
the page
prevent
Function N/A You can call this method to prevent the default
Default()
behavior for the event.
relatedTarget
Element R
The secondary target of the event, most often used in
mouse events
screenX
Integer R
The x-coordinate of the mouse pointer relative to the
entire computer screen
screenY
Integer R
The y-coordinate of the mouse pointer relative to the
entire computer screen
shiftKey
Boolean R
True indicates the Shift key is pressed; false indicates it
is not.
Table continued on following page
273
All about Events
12_579088 ch09.qxd 3/28/05 11:39 AM Page 273
Free JavaScript Editor
Ajax Editor
©
→