jQuery – blur() Method
The blur event occurs when an HTML element (usually a form field) loses focus.
The blur event occurs when an HTML element (usually a form field) loses focus.
The event.currentTarget property is the current DOM element within the event bubbling phase, and is typically equal to “this”.
The event.data property contains the optional data passed to an event method when the current executing handler is bound.
The event.delegateTarget property returns the element where the currently-called jQuery event handler is attached.
The event.isDefaultPrevented() method checks whether the preventDefault() method was called for the event.
The event.isImmediatePropagationStopped() method checks whether the event.stopImmediatePropagation() was called for the event.
The event.isPropagationStopped() method checks whether event.stopPropagation() was called for the event.
The event.namespace property returns the namespace when the event is triggered, and can be used to handle tasks differently depending on the namespace.
The event.pageX property returns the position of the mouse pointer, relative to the left edge of the document.
The event.pageY property returns the position of the mouse pointer, relative to the top edge of the document.
The event.preventDefault() method stops the default action of an element from happening, such as preventing a link or button from working.
The event.relatedTarget property returns which element is being entered or exited on mouse movement.
The event.result property contains the previous value returned by an event handler triggered by the specified event.
The event.stopImmediatePropagation() method stops the rest of the event handlers from being executed or bubbling up the DOM tree. In the following, any click events happening on the div will not be executed.
In the following, the click event will NOT bubble up to its parent element such as a p or div. What this means is if the parent elements have click events attached to them, they will not fire when clicking on the span , even though the span is a part of those elements.
The event.target property returns which DOM element triggered the event and is often used to determine if the event is being handled due to event bubbling.
The event.timeStamp property returns the number of milliseconds since January 1, 1970, when the event was triggered.