Click Away Listener

Listen for click events that occur somewhere in the document, outside of the element itself.

Basic Use: Custom Menu

For instance, if you need to hide a custom menu when people click anywhere else on your page:

Properties