Java Reference
In-Depth Information
Properties
prOperty NaMe
DesCrIptION
INtrODuCeD
Indicates whether or not the event is a bubbling event.
Level 2
bubbles
Indicates whether or not the event can have its default
action prevented.
Level 2
cancelable
Indicates the
EventTarget
whose listeners are currently
being processed.
Level 2
currentTarget
Indicates the
EventTarget
object to which the event
was originally fired.
Level 2
target
Specifies the time (in milliseconds) at which the event
was fired.
Level 2
timeStamp
The name of the event (remember: this is the name
without the
on
prefix).
Level 2
type
Methods
MethOD NaMe
DesCrIptION
INtrODuCeD
Cancels the event, preventing the default action from
taking place, only if the event is cancelable.
Level 2
preventDefault()
Prevents further propagation of an event.
Level 2
stopPropagation()
Mouseevent
The
MouseEvent
object provides specific information associated with mouse events.
MouseEvent
objects
contain not only the following properties, but also the properties and methods of the
Event
object.
Valid mouse events are shown in the following table.
eVeNt NaMe
DesCrIptION
Occurs when the mouse button is clicked over an element. A
click
is
defined as a
mousedown
and
mouseup
over the same screen location.
click
Occurs when the mouse button is pressed over an element.
mousedown
Occurs when the mouse button is released over an element.
mouseup
Occurs when the mouse pointer moves onto an element.
mouseover
Occurs when the mouse pointer moves while it is over the element.
mousemove
Occurs when the mouse pointer moves away from an element.
mouseout