Skip to content

Instantly share code, notes, and snippets.

@rajankur
Last active October 14, 2016 16:42
Show Gist options
  • Save rajankur/a135417d54c95a052318ec664a0addf7 to your computer and use it in GitHub Desktop.
Save rajankur/a135417d54c95a052318ec664a0addf7 to your computer and use it in GitHub Desktop.
Disable Right Click on a Web Page using jQuery

Disable Right Click on a Web Page using jQuery

$(document).ready(function () {
    $("body").on("contextmenu",function(e){
        return false;
    }); 
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment