JavaScript - Deshabilitar Guardar Como

 
Vista:

Deshabilitar Guardar Como

Publicado por Leonardo (1 intervención) el 14/05/2018 14:34:02
Hola amigos buen día....

Contacto aquí para saber si alguien sabe como desactivar el clic derecho del mouse en un iframe..

Eh probado diferentes códigos que eh visto en línea pero ninguno ah funcionado hasta el momento.

Aquí les dejo un ejemplo del código que tengo para ver si alguno de ustedes puede ayudarme.

o la otra opción que sea des habilitar la función guardar como o descargar.

Cabe dar mención que en un iframe visualizo un PDF.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
    <script src="js/javascript.js"></script>
    </head>
 
    <body>
    <script language="javascript" type="text/javascript" onclick="true">
    document.oncontextmenu = function{return false;}
        </script>
        <div style="position: relative;width: 100%">
        <div style="width: 100%;">
        </div>
            <iframe src="archivos\ANÁLISIS DE CONFIABILIDAD8.pdf" style="width: 100%;height: 670px;"></iframe>
            </div>
    </body>
</html>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder