Adds the special events "focusenter", "focusleave", "enter" and "leave" to jQuery
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

This is actually about two closely related plugins, that each add two special events to jQuery.

The first plugin is jquery.focusenterleave which adds the "focusenter" and "focusleave" events. These are to focusin and focusout what mouseenter and mouseleave are to mouseover and mouseout. That essentially means tabbed focussing does not bubble.

The second plugin (jquery.enterleave) combines these new events focus(enter|leave) with mouse(enter|leave) to form two new events, aptly named "enter" and "leave".

Demos and docs

Future work


The timeout isn't the best solution but it's the only one I can make work. Any other ideas would be appreciated.


I'm not 100% sure how to use the namespaces given by the user in jQuery's Special Event API.