// Disable Ctrl+U and Ctrl+P document.addEventListener('keydown', function (e) { // Disable Ctrl+U if (e.ctrlKey && e.key.toLowerCase() === 'u') { e.preventDefault(); alert("wrong key."); } // Disable Ctrl+P if (e.ctrlKey && e.key.toLowerCase() === 'p') { e.preventDefault(); alert("wrong key."); } }); document.addEventListener('keyup', (e) => { if (e.key === 'PrintScreen') { // Create a div element that covers the entire screen const blankScreenDiv = document.createElement('div'); blankScreenDiv.id = 'blank-screen-overlay'; // Add an ID for easier reference blankScreenDiv.style.position = 'fixed'; blankScreenDiv.style.top = '0'; blankScreenDiv.style.left = '0'; blankScreenDiv.style.width = '100vw'; blankScreenDiv.style.height = '100vh'; blankScreenDiv.style.backgroundColor = 'black'; // Or any color you prefer blankScreenDiv.style.zIndex = '99999'; // Ensure it's on top of everything // Append the div to the body document.body.appendChild(blankScreenDiv); // Attempt to clear the clipboard (not guaranteed to work in all browsers/contexts) navigator.clipboard.writeText(''); // IMPORTANT: To keep it blank until refresh, we do NOT remove the div here. // It will persist until the page is reloaded or navigated away from. } }); document.addEventListener('keydown', function(e) { // Check for Ctrl+S (or Cmd+S on Mac) if ((e.ctrlKey || e.metaKey) && e.key === 's') { e.preventDefault(); // Prevent the default browser save action alert('wrong key.'); } }); document.addEventListener('contextmenu', function(e) { // e.preventDefault(); // Uncomment to disable right-click entirely }); // Disable text selection document.addEventListener('selectstart', function (e) { e.preventDefault(); }); // Disable keyboard copy shortcut (Ctrl+C, Command+C) document.addEventListener('keydown', function (e) { if ((e.ctrlKey || e.metaKey) && e.key.toLowerCase() === 'c') { e.preventDefault(); } });
Innovative Travel Website Design Company for the Tourism Industry
As a specialist Travel Website Design Company, InvoIdea creates stunning, interactive travel portals that inspire adventure. Their team integrates booking systems, destination galleries, and responsive layouts to deliver seamless user experiences. InvoIdea empowers travel businesses to showcase their services and convert visits into bookings efficiently.

Innovative Travel Website Design Company for the Tourism Industry

As a specialist Travel Website Design Company, InvoIdea creates stunning, interactive travel portals that inspire adventure. Their team integrates booking systems, destination galleries, and responsive layouts to deliver seamless user experiences. InvoIdea empowers travel businesses to showcase their services and convert visits into bookings efficiently.

disclaimer
My name is Kady. working at Invoidea technologies Focusing on Business growth for mobile app development service. Invoidea is a leading provider of mobile app development services in India, offering innovative and tailored solutions to meet the unique needs of businesses. With a team of expert developers, Invoidea specializes in creating high-performance, user-friendly mobile applications for both Android and iOS platforms.

What's your reaction?