86151/how-do-i-disable-right-click-on-my-web-page
Hello @kartik,
You can do that with JavaScript by adding an event listener for the "contextmenu" event and calling the preventDefault() method:
document.addEventListener('contextmenu', event => event.preventDefault());
Hope it works!! Thank You!!
Hii @kartik, HTML5 introduced the history.pushState() and history.replaceState() methods, which allow you ...READ MORE
Hello @kartik, You'd need to have a javascript ...READ MORE
Hello @kartik, Use hash = JSON.parse string Rails should automagically ...READ MORE
Hello @kartik, If you are using ModelForm, apart from ...READ MORE
Hello @kartik, If your script is called myScript.js ...READ MORE
Hello @kartik, Try this code : // Create an ...READ MORE
Hello @kartik, Use node-inspector from any browser supporting WebSocket. Breakpoints, ...READ MORE
Hello @kartik, you can do this: fs.readFile(path.resolve(__dirname, 'settings.json'), 'UTF-8', ...READ MORE
Hello @kartik, If you want the onload method ...READ MORE
Hello, In the error callback or $.ajax you have three ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.