Article View: chile.comp.programacion
Article #405ayuda con javascript
From: Rickoj
Date: Wed, 11 Mar 2009 22:12
Date: Wed, 11 Mar 2009 22:12
25 lines
1602 bytes
1602 bytes
tengo un codigo javascript que previene que presiones el f5 y el boton
derecho del mouse
cuando lo pruebo solo, funciona, pero lo inserto en un php y no funciona
<script>
function Verificar()
{
var tecla=window.event.keyCode;
if (tecla==116) {
alert("Funciones deshabilitadas"); event.keyCode=0;
event.returnValue=false;
}
}
function derecha(e) {
if (event.button == 2) {
alert("Funciones deshabilitadas");
}
}
document.onmousedown=derecha
</SCRIPT>
</head>
<body onKeyDown="javascrip:Verificar()">
alguna solucion de que pueda ser?
Technical Details
Message-ID:
<gp9d01$bmf$1@news.nivel5.cl>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news-xfer.nntp.sonic.net!news.kjsl.com!news.nivel5.cl!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,e363173fbca84e78,start X-Google-Attributes: gid1593cb,domainid0,public,usenet X-Google-Language: SPANISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news-xfer.nntp.sonic.net!news.kjsl.com!news.nivel5.cl!not-for-mail From: "Rick_oj" <rick_oj[sin-esto]@tutopia.com> Newsgroups: chile.comp.programacion Subject: ayuda con javascript Date: Wed, 11 Mar 2009 19:12:14 -0300 Organization: Varios Lines: 27 Message-ID: <gp9d01$bmf$1@news.nivel5.cl> NNTP-Posting-Host: pc-72-180-120-200.cm.vtr.net X-Trace: news.nivel5.cl 1236809537 11983 200.120.180.72 (11 Mar 2009 22:12:17 GMT) X-Complaints-To: news@news.nivel5.cl NNTP-Posting-Date: Wed, 11 Mar 2009 22:12:17 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5512 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Antivirus: avast! (VPS 090311-0, 11/03/2009), Outbound message X-Antivirus-Status: Clean