I am trying to trigger mouse right click and display the events. I tried the following code
document.getElementById("rightclick").addEventListener("click", function({
$("#phraseDiv").contextmenu();
});
but didn't work. Basically I want to show the browser's rightclick menu on click.
Any help will be much appreciated
Thank you