Java Reference
In-Depth Information
Properties
prOperty NaMe
DesCrIptION
INtrODuCeD
Returns a boolean value indicating whether or not
the Alt key was pressed during the event's firing.
Level 2
altKey
Indicates which mouse button was pressed, if
applicable. The number 0 represents the left
button, 1 indicates the middle button, and 2
indicates the right button. Left‐hand‐configured
mice reverse the buttons (right is 0 , middle is 1 ,
and left is 2 ).
Level 2
button
The horizontal coordinate relative to the client
area.
Level 2
clientX
The vertical coordinate relative to the client area.
Level 2
clientY
Returns a boolean value indicating whether or not
the Ctrl key was pressed when the event fired.
Level 2
ctrlKey
Indentifies a secondary EventTarget . Currently,
this property is used with the mouseover event to
indicate the EventTarget that the mouse pointer
exited and with the mouseout event to indicate
which EventTarget the pointer entered.
Level 2
relatedTarget
The horizontal coordinate relative to the screen.
Level 2
screenX
The vertical coordinate relative to the screen.
Level 2
screenY
Returns a boolean value indicating whether
or not the Shift key was pressed when the
event fired.
Level 2
shiftKey
MIsCeLLaNeOus eVeNts
The following tables describe the events available in client‐side JavaScript.
Mouse Events
eVeNt
DesCrIptION
Raised when the user clicks an HTML control.
click
Raised when the user double‐clicks an HTML control.
dblclick
Raised when the user presses a mouse button.
mousedown
continues
Search WWH ::




Custom Search