spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / dhtml / diner / keypress

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


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

webref The latest from WebReference.com Browse >
Search Engine Optimization: Selecting and Embedding Keywords · Are Google's Language Translation Web Services Ready for Prime Time? · Installing and Using Meeplace, the Business Review CMS
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
IBM DB2 10 for z/OS: Justifying the Upgrade · Living La Vida Colo: Choosing the Right Colocation Facility · FTC Concerns over Social Media Privacy Linger

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

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