I\'ve seen plenty of questions and answers on SO and elsewhere that talk about right click events and how to catch and handle them with JavaScript, generally using the
http://jsfiddle.net/jqYN5/ is this what you are looking for? Adding context-menu:
context-menu
right click`
document.getElementById('btn').onclick = function() { alert('click!') } document.getElementById('btn2').oncontextmenu = function() { alert('right click!') }