Advertisement
teknogeek

Double Right Click Function

Oct 6th, 2012
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. DoubleRightClick = function(event){
  2.  
  3. var c =0 ;
  4. onmousedown=function(event){
  5. if(event.button == 2){
  6.     c++;
  7. setTimeout(cc, 600);
  8.            }
  9. if (c >1){
  10.       alert("Double Right Click Activated!")
  11.                         }
  12.            }
  13.     function cc{
  14.            c=0;
  15. }
  16. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement