#48 new
Brian Smith

How to disable right click?

Reported by Brian Smith | June 15th, 2020 @ 11:43 AM

Hello Members,
I want to disable the right-click in the custom made website that I have created using HTML, CSS, and JS. I am getting error, I used this code - document.addEventListener('menu', event => event.Default());
I want to disable the right click like on this website - usersadvice

If anyone know where I am doing the wrong then it will be helpful for me.

Thanks.

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Cerberus is a lightweight and easy-to-use Continuous Builder software for Ruby.

People watching this ticket

Pages