An open API service indexing awesome lists of open source software.

https://github.com/pizzapanther/jquery-mouse-click

Adds ability to attach right click and middle click events.
https://github.com/pizzapanther/jquery-mouse-click

Last synced: 9 months ago
JSON representation

Adds ability to attach right click and middle click events.

Awesome Lists containing this project

README

          

jQuery Mouse-Click Plugin

Version 1.0

By Paul Bailey
http://neutronide.com/

Based On jQuery Right Click from
Cory S.N. LaViska
A Beautiful Site (http://abeautifulsite.net/)
20 December 2008
Visit http://abeautifulsite.net/notebook/68 for more information

Usage:
Capture right click
$("#selector").rightClick( function(e) {
Do something
});

Capture right mouse down
$("#selector").rightMouseDown( function(e) {
Do something
});

Capture right mouseup
$("#selector").rightMouseUp( function(e) {
Do something
});

Disable context menu on an element
$("#selector").noContext();

Capture middle click
$("#selector").middleClick( function(e) {
Do something
});

Capture middle mouse down
$("#selector").middleMouseDown( function(e) {
Do something
});

Capture middle mouseup
$("#selector").middleMouseUp( function(e) {
Do something
});

This plugin is dual-licensed under the GNU General Public License and the MIT License and is copyright 2011 by Paul Bailey.