Disable the right mouse button

Hi.

I’m not a software programmer.

Could someone of you who are, tell me how to implement a routine in Java to disable the right mouse button or the option to copy.

I’m inserting a code in the .js file in the “page settings”, but it does not work.

If someone has an idea or knows a way to do it, it would help me a lot.

Thanks in advance.

1 Like

You have to invoke the JS file in the head of your page. Click the add code button and add the following line to the head section:

<script>Nobotonderecho.js</script>

However, I wouldn’t bother. Many browsers can disable these features quite easily, so there is little point in adding them. The basic rule is, if you don’t want people to see the source, or download your content, don’t put them on the internet in the first place.

Adding a JS file to the attachments section (like in the screen shot) will add the header link reference for you, no need to add it via code area.

Thank you very much for your answers, @hendon52 and @Norm.

I think the same as @hendon52, but sometimes it is difficult to convince the client.
He thinks that not everyone knows how to disable java so that the right button works again.

I will test the operation of your solutions.

Happy day.