event (JavaScript 1.0)

Provides information about an event.

Properties & Events

KeyDescriptionAvailability
altkeyIf true, the ALT key is currently being pressed.
chrome 1.2safari 1.2Firefox 1.8ie 6.0opera ??
bubblesSpecify true if the event type bubbles. Otherwise, false.
chrome 1.0safari 1.0Firefox 1.0ie ??opera 7.0
cancelableTrue if the action of the event can be cancelled with the preventDefault()method. Otherwise, false.
chrome 1.0safari 1.0Firefox 1.0ie ??opera 7.0
clientxSpecifies the x-coordinate (in pixels) of the mouse relative to the client window.
chrome 1.2safari 1.2Firefox 1.8ie 4.0opera 8.0
clientySpecifies the y-coordinate (in pixels) of the mouse relative to the client window.
chrome 1.2safari 1.2Firefox 1.8ie 4.0opera 8.0
ctrlkeyIf true, the CTRL key is currently being pressed.
chrome 1.2safari 1.2Firefox 1.8ie 5.0opera 8.0
currenttargetNode of the Document that is handling the event.
chrome 1.0safari 1.0Firefox 1.0ie ??opera 7.0
eventphasePhase that the event is currently in. See Remarks for a list of valid values.
chrome 1.0safari 1.0Firefox 1.0ie ??opera 7.0
fromelementSpecifies the element that was the previous location of the pointer or cursor.
chrome 1.2safari 1.2Firefox ??ie 5.0opera 8.0
keycodeSpecifies the Unicode key code for the event..
chrome 1.2safari 1.2Firefox 1.8ie 6.0opera 8.0
offsetxSpecifies the x-coordinate (in pixels) of the mouse relative to the object that is firing the event.
chrome 1.2safari 1.2Firefox ??ie 5.0opera 8.0
offsetySpecifies the y-coordinate (in pixels) of the mouse relative to the object that is firing the event.
chrome 1.2safari 1.2Firefox ??ie 5.0opera 8.0
screenxSpecifies the x-coordinate (in pixels) of the mouse relative to the screen.
chrome 1.2safari 1.2Firefox 1.8ie 5.0opera 8.0
screenySpecifies the y-coordinate (in pixels) of the mouse relative to the screen.
chrome 1.2safari 1.2Firefox 1.8ie 5.0opera 8.0
shiftkeyIf true, the SHIFT key is currently being pressed.
chrome 1.2safari 1.2Firefox 1.8ie 5.0opera 8.0
srcelementElement that fired or received the event.
chrome 1.2safari 1.2Firefox ??ie 5.0opera 8.0
targetTarget node for the event.
chrome 1.0safari 1.0Firefox 1.0ie ??opera 7.0
toelementSpecifies the element that the mouse pointer is moving toward.
chrome 1.2safari 1.2Firefox ??ie 5.0opera 8.0
typeType of event.
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 7.0

Example
No example available.

Examples having uses of: 'event'

0 votes
1k views

jQuery Error handling

Register a handler with jQuery to be called when Ajax requests complete with an error. Whenever an Ajax request completes with an error, jQuery triggers the ajaxError event. Any and all handlers that have been registered with the .ajaxError() method are executed at this time.
1 votes
8k views

jQuery AJAX Life Cycle

jQuery AJAX life cycle demonstration. This is a demonstration of the methods ajaxStart, ajaxSend, ajaxComplete, ajaxStop, and ajaxSuccess that are triggered when load method is called.
0 votes
1k views

JavaScript Keyboard Events

This event are fired when a key is pressed. IE 8 and earlier use event.keyCode to retrieve the key that was pressed down, while Firefox/Chrome/Safari/Opera use event.which.
1 votes
10k views

HTML5 Drag and Drop

Now HTML 5 came up with a Drag and Drop (DnD) API that brings native DnD support to the browser making it much easier to code up. HTML 5 DnD is supported by all the major browsers like Chrome, Firefox 3.5 and Safari.