The Event Object

The IE and DOM event models support event objects which return information on events occuring within the browser. To view the properties of events within this browser window, move your mouse pointer around the Web page. The table below will show the values returned by the different object properties. Also, click your mouse button or press a keyboard key to view the properties associated with those events. Note that the offsetX and offsetY properties are only supported in the IE event model.

Event Model Event Object type
Mouse-Related Properties
screenX, screenY ,
clientX, clientY ,
offsetX, offsetY ,
Keyboard-Related Properties
Container Element
Carey, P. New Perspectives on JavaScript, Course Technology: Boston, 2005.