Created
January 16, 2016 05:07
-
-
Save shameersn/4317d7dc3d30bbb2c75a to your computer and use it in GitHub Desktop.
How to prevent Right Click option using jquery and text selection
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
| body { | |
| -webkit-user-select: none; | |
| -moz-user-select: -moz-none; | |
| -ms-user-select: none; | |
| user-select: none; | |
| } | |
| $(document).on("contextmenu", function (event) { event.preventDefault(); }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment