I am interested in eliminating chrome's right click menu on a right click and execute a new function.
Currently, I do the following:
new_tab_li.oncontextmenu = myFunction;
This excutes "myFunction" but, it also opens up chrome's right click menu.
I am interested in eliminating chrome's right click menu on a right click and execute a new function.
Currently, I do the following:
new_tab_li.oncontextmenu = myFunction;
This excutes "myFunction" but, it also opens up chrome's right click menu.
You have to do return false;
inside your custom function
function myFunction{
// Your code
return false;
}