Top Solutions

Event object-event.which

For keyboard and mouse events, this property determines which key or button you are pressing. Event.which normalizes event.keyCode and event.charCode .

Event object-event.timeStamp

This property returns the number of milliseconds since January 1, 1970 when the event was triggered. This makes it easy to detect the performance of a jQuery function.


The DOM element that originally triggered the event.This is the object when registering the event, or its child elements. Usually used to compare and this to determine if the event was triggered by bubbling.

Event object-event.result

This property contains the return value of the handler that was triggered by the current event event, unless the value is undefined .

Event object-event.relatedTarget

Any other DOM elements involved in the event. For the mouseout event, it points to the element that was entered; for the mousein event, it points to the element that was left.

Event object-event.preventDefault()

Prevents the triggering of default event behavior.For example, after executing this method, if you click on an anchor point, it will not let the browser jump to the new URL.

Page 3 of 100