Created
August 5, 2020 13:10
-
-
Save rwkyyy/52f6e65f06a6862e745d0399a610e71b to your computer and use it in GitHub Desktop.
disable 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
| //for js | |
| $(document).bind("contextmenu", function (e) { | |
| return false; | |
| }); | |
| //for wp | |
| jQuery(document).bind("contextmenu", function (e) { | |
| return false; | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment