Search
Learn
Share

disable right click

Published by Robert Höög on 12 January, 2018
12 views
<script>
$(document).ready(function () {
// Disable right-click
$(document).on("contextmenu",function(e){return false;});
// Disable cut/copy/paste option
$(document).on("cut copy paste","body",function(e) {e.preventDefault();});
});
<script>