jQuery – event.isPropagationStopped() Method
The event.isPropagationStopped() method checks whether event.stopPropagation() 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.
The event.which property returns which keyboard key or mouse button (by key/button number) was pressed for the event.
The fadeIn() method gradually changes, fades in, the opacity for the selected element from completely hidden to completely visible.
The fadeOut() method gradually changes, fades out, the opacity for the selected element from completely visible to completely hidden.
The fadeTo() method gradually changes the opacity for the selected element to a specified opacity, fading in or fading out the element.
The fadeToggle() method toggles between the fadeIn() and fadeOut() methods by fading in a faded-out element and fading out a faded-in element.
The filter() method returns elements that match a certain criteria. Elements that don’t match the criteria are removed from the selection.
The finish() method stops the currently-running animations, removes all queued animations, and completes all animations for the selected element.