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

124
Vistas
Prevent right click on embeded PDF

I have pdf's on a clients site using tags, the client has requested that I prevent users from right clicking the document to stop them from saving the files (Yes I am aware this is foolish but they are adamant that this is what they want).

I have looked at many ways of achieving this but none seem to work (Some work put prevent scrolling).

I would also like to disable CRTL+S.

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

0

While, as you said the approach is foolish and there are so many ways around it, for most users, you can just capture the contextmenu event and use event.preventDefault() to stop the context menu from appearing (or provide a custom one). It's supported by all major desktop browsers, so should do what you need it to do without hindering scrolling or anything else.

For Ctrl+S, I've not attempted this before, but filtering the keydown event may be an option (though tbh I doubt it). Other than that, I don't know of any other way to do this.

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