Created
June 7, 2016 04:50
-
-
Save met4000/63b82d993c941ef5b02ca1b5b87c85fc to your computer and use it in GitHub Desktop.
Javascript Disable Rightclick
This file contains 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(){}; | |
status = "Right Click Disabled"; | |
document.body.setAttribute("oncontextmenu", "return false"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment