ernstc / clickout

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jQuery Plugin ClickOut
-----------------------------

by Ernesto Cianciotta (e.cianciotta@abriom.com)



Those who know jQuery (www.jquery.com) certainly know and appreciate its qualities. For those who do not know, jQuery is a fast and concise JavaScript library that simplifies HTML document traversing, animating, Ajax interactions and event handling.

About event handling, perhaps the most widley used is the "click" event that fires when you click inside the area of a given DOM element.

Sometimes, however, there is the need to handle the event that triggers when you click outsite the area of the DOM element. While the "onclick" is a native JavaScript event and is supported by jQuery with ".click()" function (see API), there is no native event in JavaScript that triggers when you click outside of an element in the HTML page.

To resolve this problem I wrote the plugin ".clickout()"


Full blog post: http://ecianciotta-en.abriom.com/2011/09/jquery-plugin-clickou.html

About


Languages

Language:JavaScript 100.0%