SyntaxFix
Write A Post
Hire A Developer
Questions
With jquery you can use event object type
event object type
jQuery(".element").on("click contextmenu", function(e){ if(e.type == "contextmenu") { alert("Right click"); } });