Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

166
Vistas
How do I run code when right click is pressed?

I am trying to disable users of my html site from pressing right click. I already have a response to this prepared, but I cannot figure out how to run that code when someone presses right click. Does anyone know how to solve this? (I would prefer JavaScript, but I mean if it works it works)

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

document.addEventListener('contextmenu', event => event.preventDefault());

but why would you do this? Anyone can run your client side code through a debugger and work around it. Most people try to keep people from seeing their source code which is a futile attempt with the open nature of web browsers.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda