<script type="text/javascript">
jQuery(document).ready(function ($) {
$(document).bind("keydown", function(e) {
if(e.ctrlKey && (e.which == 65 || e.which == 67 || e.which == 88 || e.which == 83 ||e.which == 85)) {
e.preventDefault();
return false;
}
});
$(document).bind("contextmenu",function(e) {
e.preventDefault()
});
$(document).on( "mousedown", function(event) {
console.log(event.which);
if(event.which=="3")
{
document.oncontextmenu = document.body.oncontextmenu = function() {return false;}
}
});
});
</script>
<style type="text/css">
body{
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
</style>
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.