Java Reference
In-Depth Information
Event Name
Description
mouseup
Occurs when the mouse button is released over an element.
mouseover
Occurs when the mouse pointer moves onto an element.
mousemove
Occurs when the mouse pointer moves while it is over the element.
mouseout
Occurs when the mouse pointer moves away from an element.
Properties
Property Name
Description
Introduced
altKey
Returns a Boolean value indicating whether or not the Alt key
was pressed during the event's fi ring.
Level 2
button
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-confi gured
mice reverse the buttons (right is 0 , middle is 1 , and left is 2 ).
Level 2
clientX
The horizontal coordinate relative to the client area.
Level 2
clientY
The vertical coordinate relative to the client area.
Level 2
ctrlKey
Returns a Boolean value indicating whether or not the Ctrl key
was pressed when the event fi red.
Level 2
relatedTarget
Indentifi es 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
screenX
The horizontal coordinate relative to the screen.
Level 2
screenY
The vertical coordinate relative to the screen.
Level 2
shiftKey
Returns a Boolean value indicating whether or not the Shift
key was pressed when the event fi red.
Level 2
Search WWH ::




Custom Search