HTML and CSS Reference
In-Depth Information
Table 13.8 Properties of the event Object: Internet Explorer (continued)
Property
What It Describes
srcFilter
Specifies the filter object that caused an onfilterchange event.
x and y
The cursor's horizonal and vertical position in pixels, relative to the
document in which the event occurred.
reason
Used to indicate the status of a data transfer for data source objects.
Table 13.9 Properties of the event Object: Mozilla Firefox
Property
What It Describes
altKey, ctrlKey, metaKey,
shiftKey
Set to true or false to test if Alt, Shift, Control, or Meta keys were pressed
when the event occurred (Internet Explorer doesn't support metaKey).
pageX and pageY
Horizontal and vertical cursor position within a Web page, relative to the
document, not supported by Internet Explorer.
bubbles
Set to Boolean value indicating whether or not the event bubbles.
button
An integer indicating which mouse button was pressed or released, 0 =
left, 2 = right, 1 = middle. Slightly different in Internet Explorer, as
described earlier.
cancelable
A Boolean value indicating whether or not the event can be canceled.
charCode
Indicates the Unicode for the key pressed. Use
String.fromCharCode(which) to convert code to string.
clientX, clientY
Returns the mouse coordinates at the time of the event relative to upper-
left corner of the window.
currentTarget
The node that this event handler is currently being run on.
eventPhase
An integer value indicating which phase of the event flow this event is
being processed in. One of CAPTURING_PHASE (1), AT_TARGET (2) or
BUBBLING_PHASE (3).
layerX and layerY
Returns the horizontal and vertical cursor position within a layer, not
standard.
relatedTarget
On a mouseover event it indicates the node that the mouse has left. On a
mouseout event it indicates the node the mouse has moved onto.
screenX and screenY
Returns the coordinates of the mouse relative to the screen when the
event fired.
 
Search WWH ::




Custom Search