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
#rightclickis being called? And have you checked that whatever is supposed to happen when you triggercontextmenuis or isn't happening? Do some debugging to check where the code gets to.