Created
November 1, 2013 10:53
-
-
Save Ulv/7263817 to your computer and use it in GitHub Desktop.
disable mouse right click
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.onmousedown = function(event) { | |
if (event.button == 2) { | |
return false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment