Table 2


Properties of the event object.

PROPERTY DESCRIPTION
data Passed only with the dragDrop event, this property returns the URLs of the dropped objects in an array.
modifier Specifies the modifier keys associated with a mouse or key event. ALT_MASK, CONTROL_MASK, SHIFT_MASK, and META_MASK are the modifier's keys.
which Specifies the mouse button pressed or the ASCII value of a pressed key.
screenY Specifies the cursor's vertical position (in pixels), relative to the screen.
screenX Specifies the cursor's horizontal position (in pixels), relative to the screen.
pageY Specifies the cursor's vertical position (in pixels), relative to the page.
pageX Specifies the cursor's horizontal position (in pixels), relative to the page.
layerY Synonymous with y. Specifies the object height when passed with the resize event.
If any other event occurs, it specifies the cursor's vertical position in pixels in relation to the layer.
layerX Synonymous with x. Specifies the object width when passed with the resize event. If any other event occurs, it specifies the cursor's horizontal position in pixels in relation to the layer.
target Represents the object to which the event was sent.
type Specifies the event type.