Hi,
Today, i we will show you disable Ctrl+U in javascript. This article will give you simple example of disable Ctrl+U in javascript. you will learn disable Ctrl+U in javascript. So let’s follow few step to create example of disable Ctrl+U in javascript.
Example
<!DOCTYPE html>
<html>
<head>
<title>Disable Ctrl+U In Javascript</title>
</head>
<body>
<h1>Disable Ctrl+U In Javascript</h1>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript" > $(function () { $(this).bind("contextmenu", function (e) { e.preventDefault(); }); }); </script>
<script>
document.onkeydown = function(e) {
if (e.ctrlKey &&
(e.keyCode === 85 )) {
return false;
}
};
</script>
</body>
</html>