Events

These methods are used to register behaviors to take effect when the user interacts with the browser, and to further manipulate those registered behaviors.

.bind

Attach a handler to an event for the elements.

.blur

Bind an event handler to the

.change

Bind an event handler to the

.click

Bind an event handler to the

.dblclick

Bind an event handler to the "dblclick" JavaScript event, or trigger that event on an element.

.delegate

Attach a handler to one or more events for all elements that match the selector, now or in the future, based on a specific set of root elements.

.die

Remove all event handlers previously attached using .live() from the elements.

.error

Bind an event handler to the

event.currentTarget

The current DOM element within the event bubbling phase.

event.data

The optional data passed to jQuery.fn.bind when the current executing handler was bound.

event.isDefaultPrevented

Returns whether event.preventDefault() was ever called on this event object.

event.isImmediatePropagationStopped

Returns whether event.stopImmediatePropagation() was ever called on this event object.

event.isPropagationStopped

Returns whether event.stopPropagation() was ever called on this event object.

event.namespace

The namespace specified when the event was triggered.

event.pageX

The mouse position relative to the left edge of the document.

event.pageY

The mouse position relative to the top edge of the document.

event.preventDefault

If this method is called, the default action of the event will not be triggered.

event.relatedTarget

The other DOM element involved in the event, if any.

event.result

The last value returned by an event handler that was triggered by this event, unless the value was undefined.

event.stopImmediatePropagation

Prevents other event handlers from being called.

event.stopPropagation

Prevents the event from bubbling up the DOM tree, preventing any parent handlers from being notified of the event.

event.target

The DOM element that initiated the event.

event.timeStamp

The difference in milliseconds between the time an event is triggered and January 1, 1970.

event.type

Describes the nature of the event.

event.which

For key or button events, this attribute indicates the specific button or key that was pressed.

.focus

Bind an event handler to the

.focusin

Bind an event handler to the

.focusout

Bind an event handler to the

.hover

Bind two handlers to the matched elements, to be executed when the mouse pointer enters and leaves the elements.

.keydown

Bind an event handler to the

.keypress

Bind an event handler to the

.keyup

Bind an event handler to the

.live

Attach a handler to the event for all elements which match the current selector, now and in the future.

.load

Bind an event handler to the

.mousedown

Bind an event handler to the

.mouseenter

Bind an event handler to be fired when the mouse enters an element, or trigger that handler on an element.

.mouseleave

Bind an event handler to be fired when the mouse leaves an element, or trigger that handler on an element.

Feedback
Your Name / email address
Feedback as
Your feedback
close
Quickly sign in with:

Create a FATALWEB account here:

First name:

Last name:

E-mail address:

Join Fatalweb

Already have a fatalweb account? Log in here