How to disable right click , f12 and ctrl+u ?

How to disable right click , f12 and ctrl+u ?

Simple code for disable right click , f12 , ctrl+u . copy this code and you can disable right click on your web page. we always wants to secure our website and web based project. So we always need to disable right click ,f12 & ctrl+u. Use this simple javascript code for disable right click , f12 and ctrl+u on your web page.

Please find the below script for disable right click and f12 , also disable ctrl+u.

Disable right click , f12 , ctrl+u

$(document).ready(function() {
$(document).on(“contextmenu”, function(e) {
return false;
});
$(document).keydown(function(event) {
if (event.keyCode == 123 || (event.ctrlKey && event.keyCode == 85) || (event.ctrlKey && event.shiftKey && event.keyCode == 73 || event.keyCode == 116)) {
return false;
} else if (event.ctrlKey && event.shiftKey && event.keyCode == 73) {
return false; //Prevent from ctrl+shift+i
}
});
});

Share your ideas in comment section and also share your suggestions and question related programming,
You can also check Grunt script for minifying all JS file.