Event

JavaScript 1.2+, JScript 1.0+ Nav4+, IE 3+ Syntax

Core client-side JavaScript object.

Description

The Event object is a built-in object that handles the passing of properties to an event handler. The available properties are shown in Table 7.24.

Table 7.24. Properties of the Event Object
Property Description
data Array of URL's for dragged and dropped objects
height Height of window
layerX Horizontal cursor position within layer
layerY Vertical cursor position within layer
modifiers Bit mask representing modifier keys
pageX Horizontal cursor position within Web page
pageY Vertical cursor position within Web page
screenX Horizontal cursor position within computer screen
screenY Vertical cursor position within computer ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.