Event Properties Table | 2 | WebReference

Event Properties Table | 2

Netscape Navigator 4 Event object properties

PropertyTypeDescription
.typeStringThe type of event.
.targetStringThe object that event refers to.
.layerXIntegerThe width of the object when the resize event was passed to it or the horizontal position of the cursor relative to the layer in which event occured. Same as x.
.layerYIntegerThe height of the object when the resize event was passed to it or the vertical position of the cursor relative to the layer in which event occured. Same as y.
.pageXIntegerThe horizontal position of the cursor relative to the page.
.pageYIntegerThe vertical position of the cursor relative to the page.
.screenXIntegerThe horizontal position of the cursor relative to the screen.
.screenYIntegerThe vertical position of the cursor relative to the screen.
.whichIntegerThe mouse button the user pressed or the ASCII value of the key pressed.
.modifiersStringThe keys that were being held down during the mouse or key press. Possible values are ALT_MASK, CONTROL_MASK, SHIFT_MASK and META_MASK.
.dataArray of StringsThe URLs of objects dropped using the dragdrop event.

Internet Explorer 4 event object properties

PropertyTypeDescription
keyCodeIntegerThe ASCII value of the key pressed.
fromElementStringThe focused element before an onmouseover or onmouseout event.
toElementStringThe focused element after an onmouseover or onmouseout event.
buttonIntegerThe mouse button pressed that caused event.
cancelBubbleBooleanIf true, stops event from bubbling up the document hierarchy.
srcElementStringThe deepest element that event occured on.
xIntegerThe horizontal co-ordinate of the mouse pointer relative to the window. Returns false (-1) if the pointer is outside the window.
yIntegerThe vertical co-ordinate of the mouse pointer relative to the window. Returns false (-1) if the pointer is outside the window.
shiftKeyBooleanReturns true if the Shift key was pressed during event.
ctrlKeyBooleanReturns true if the Control key was pressed during event.
altKeyBooleanReturns true if the Alt key was pressed during event.
returnValueBooleanUsed to specify a return value for event.

Produced by Peter Belesis and

All Rights Reserved. Legal Notices.
Created: June 04, 1998
Revised: June 04, 1998

URL: http://www.webreference.com/dhtml/diner/keypress/evTable.html