Código Javascript
:
Ver originalgoogle.addEventListener("click", function(e){
if(e.button == 2){
var posx = event.clientX;
var posy = event.clientY;
menu.style.left = posx + "px";
menu.style.top = posy + "px";
if(menu.style.display == "none"){
menu.style.display = "block";
}else{
menu.style.display = "none";
}
if (element == google){
elementURL = googleURL;
}else if(element == youtube){
elementURL = youtubeURL;
}
}else{
event.preventDefault();
}
}, false);