KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How do you obtain the clicked mouse button using jQuery? $('div').bind('click', function(){ alert('clicked'); }); this is triggered by both right and left click, what is the way of being able to catch right mouse click? I'd be happy if something like below exists: $('div').bind('rightclick', function(){ alert('right mouse button is pressed'); });
Tags (comma-separated)
Save Edits
Cancel