Capture Right Click Through Javascript, Withouth Wmode
Flash player has a bug in using anything other than wmode='window' in Firefox/Chrome when using any other language than English. This bug is reported and not fixed yet http://bugs
Solution 1:
Fortunately you most often want to know if the right button has been clicked. Since W3C and Microsoft happen to agree on this one and give button a value of 2, you can still detect a right click.
functiondoSomething(e) {
var rightclick;
if (!e) var e = window.event;
if (e.which) rightclick = (e.which == 3);
elseif (e.button) rightclick = (e.button == 2);
alert('Rightclick: ' + rightclick); // true or false
}
http://www.rgagnon.com/jsdetails/js-0061.html
http://www.quirksmode.org/js/events_properties.html
http://unixpapa.com/js/mouse.html http://www.javascripter.net/faq/leftvsri.htm
Post a Comment for "Capture Right Click Through Javascript, Withouth Wmode"