Hi, I have an extension which requires me to conditionally suppress the right click context menu. I have tried lots of ways, but I can't seem to get it to stop.
Code:// fire function if clicked document.onmousedown = checkPos; function checkPos(e){ // if RMB, perform action if(e.button == 2){ // do action (without context menu) return false; } } return true; }


LinkBack URL
About LinkBacks



Reply With Quote
Am I using it wrong? I only want to suppress it a condition is satisfied.
