Is right click a Javascript event? If so, how do I use it?
To handle right click from the mouse, you can use the 'oncontextmenu' event. Below is an example:
document.body.oncontextmenu=function(event) {
alert(" Right click! ");
};
the above code alerts some text when right click is pressed. If you do not want the default menu of the browser to appear, you can add return false; At the end of the content of the function. Thanks.