Last active
November 12, 2020 16:06
-
-
Save Rajdeepc/5c9b36d586b10ddf97047f2d24d11133 to your computer and use it in GitHub Desktop.
DIsable text selection and turn off inspect element on a webpage
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
| // To disable text selection on your webpage try this css | |
| body { | |
| -webkit-user-select: none; | |
| -moz-user-select: -moz-none; | |
| -ms-user-select: none; | |
| user-select: none; | |
| } | |
| // To disable inspect element on a webpage do this | |
| <body oncontextmenu="return false"></body> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment